[PATCH] EDAC: mc numbers refactor 1-of-2
Remove add_mc_to_global_list(). In next patch, this function will be reimplemented with different semantics. 1 Reimplement add_mc_to_global_list() with semantics that allow the caller to determine the ID number for a mem_ctl_info structure. Then modify edac_mc_add_mc() so that the caller specifies the ID number for the new mem_ctl_info structure. Platform-specific code should be able to assign the ID numbers in a platform-specific manner. For instance, on Opteron it makes sense to have the ID of the mem_ctl_info structure match the ID of the node that the memory controller belongs to. 2 Modify callers of edac_mc_add_mc() so they use the new semantics. Signed-off-by:Doug Thompson <norsk5@xmission.com> Cc: Alan Cox <alan@lxorguk.ukuu.org.uk> Signed-off-by:
Andrew Morton <akpm@osdl.org> Signed-off-by:
Linus Torvalds <torvalds@osdl.org>
Showing
- drivers/edac/amd76x_edac.c 4 additions, 1 deletiondrivers/edac/amd76x_edac.c
- drivers/edac/e752x_edac.c 4 additions, 1 deletiondrivers/edac/e752x_edac.c
- drivers/edac/e7xxx_edac.c 4 additions, 1 deletiondrivers/edac/e7xxx_edac.c
- drivers/edac/edac_mc.c 30 additions, 29 deletionsdrivers/edac/edac_mc.c
- drivers/edac/edac_mc.h 1 addition, 1 deletiondrivers/edac/edac_mc.h
- drivers/edac/i82860_edac.c 4 additions, 1 deletiondrivers/edac/i82860_edac.c
- drivers/edac/i82875p_edac.c 4 additions, 1 deletiondrivers/edac/i82875p_edac.c
- drivers/edac/r82600_edac.c 4 additions, 1 deletiondrivers/edac/r82600_edac.c
Loading
Please register or sign in to comment