diff options
author | Borislav Petkov <borislav.petkov@amd.com> | 2010-10-01 13:20:05 -0400 |
---|---|---|
committer | Borislav Petkov <borislav.petkov@amd.com> | 2011-01-07 05:33:51 -0500 |
commit | 0092b20d4cf3de243b5c82b410ee02644cec2707 (patch) | |
tree | b839d0953cf4949d93dd957f776aae0c4b9f8751 /drivers/edac/amd64_edac.h | |
parent | 395ae783b384e5243804b07fba3e3f8379ddf1d6 (diff) |
amd64_edac: Simplify CPU family detection
Concentrate CPU family detection in the per-family init function.
Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Diffstat (limited to 'drivers/edac/amd64_edac.h')
-rw-r--r-- | drivers/edac/amd64_edac.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/edac/amd64_edac.h b/drivers/edac/amd64_edac.h index e5204feda191..064e0d691ff9 100644 --- a/drivers/edac/amd64_edac.h +++ b/drivers/edac/amd64_edac.h | |||
@@ -464,6 +464,9 @@ struct amd64_pvt { | |||
464 | /* DCT per-family scrubrate setting */ | 464 | /* DCT per-family scrubrate setting */ |
465 | u32 min_scrubrate; | 465 | u32 min_scrubrate; |
466 | 466 | ||
467 | /* family name this instance is running on */ | ||
468 | const char *ctl_name; | ||
469 | |||
467 | /* misc settings */ | 470 | /* misc settings */ |
468 | struct flags { | 471 | struct flags { |
469 | unsigned long cf8_extcfg:1; | 472 | unsigned long cf8_extcfg:1; |
@@ -526,11 +529,6 @@ struct amd64_family_type { | |||
526 | 529 | ||
527 | static struct amd64_family_type amd64_family_types[]; | 530 | static struct amd64_family_type amd64_family_types[]; |
528 | 531 | ||
529 | static inline const char *get_amd_family_name(int index) | ||
530 | { | ||
531 | return amd64_family_types[index].ctl_name; | ||
532 | } | ||
533 | |||
534 | static inline struct low_ops *family_ops(int index) | 532 | static inline struct low_ops *family_ops(int index) |
535 | { | 533 | { |
536 | return &amd64_family_types[index].ops; | 534 | return &amd64_family_types[index].ops; |