diff options
author | Borislav Petkov <borislav.petkov@amd.com> | 2010-10-01 19:20:05 +0200 |
---|---|---|
committer | Borislav Petkov <borislav.petkov@amd.com> | 2011-01-07 11:33:51 +0100 |
commit | 0092b20d4cf3de243b5c82b410ee02644cec2707 (patch) | |
tree | b839d0953cf4949d93dd957f776aae0c4b9f8751 /drivers/edac/amd64_edac.h | |
parent | 395ae783b384e5243804b07fba3e3f8379ddf1d6 (diff) | |
download | linux-0092b20d4cf3de243b5c82b410ee02644cec2707.tar.gz linux-0092b20d4cf3de243b5c82b410ee02644cec2707.tar.bz2 linux-0092b20d4cf3de243b5c82b410ee02644cec2707.zip |
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 { /* DCT per-family scrubrate setting */ u32 min_scrubrate; + /* family name this instance is running on */ + const char *ctl_name; + /* misc settings */ struct flags { unsigned long cf8_extcfg:1; @@ -526,11 +529,6 @@ struct amd64_family_type { static struct amd64_family_type amd64_family_types[]; -static inline const char *get_amd_family_name(int index) -{ - return amd64_family_types[index].ctl_name; -} - static inline struct low_ops *family_ops(int index) { return &amd64_family_types[index].ops; |