diff options
author | Doug Thompson <norsk5@xmission.com> | 2006-06-30 04:56:08 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-30 14:25:39 -0400 |
commit | 2d7bbb91c8df26c60d223205a087507430024177 (patch) | |
tree | 98d51dac1c1e53b2b6a887c31abc2260160eb50d /drivers/edac/edac_mc.h | |
parent | 37f04581abac20444e5b7106c1e1f28bec5b989c (diff) |
[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>
Diffstat (limited to 'drivers/edac/edac_mc.h')
-rw-r--r-- | drivers/edac/edac_mc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/edac/edac_mc.h b/drivers/edac/edac_mc.h index a2c3a4607a89..342979677d2f 100644 --- a/drivers/edac/edac_mc.h +++ b/drivers/edac/edac_mc.h | |||
@@ -417,7 +417,7 @@ void edac_mc_dump_mci(struct mem_ctl_info *mci); | |||
417 | void edac_mc_dump_csrow(struct csrow_info *csrow); | 417 | void edac_mc_dump_csrow(struct csrow_info *csrow); |
418 | #endif /* CONFIG_EDAC_DEBUG */ | 418 | #endif /* CONFIG_EDAC_DEBUG */ |
419 | 419 | ||
420 | extern int edac_mc_add_mc(struct mem_ctl_info *mci); | 420 | extern int edac_mc_add_mc(struct mem_ctl_info *mci,int mc_idx); |
421 | extern struct mem_ctl_info * edac_mc_del_mc(struct device *dev); | 421 | extern struct mem_ctl_info * edac_mc_del_mc(struct device *dev); |
422 | extern int edac_mc_find_csrow_by_page(struct mem_ctl_info *mci, | 422 | extern int edac_mc_find_csrow_by_page(struct mem_ctl_info *mci, |
423 | unsigned long page); | 423 | unsigned long page); |