aboutsummaryrefslogtreecommitdiff
path: root/drivers/edac/amd64_edac.h
diff options
context:
space:
mode:
authorBorislav Petkov2010-10-01 19:20:05 +0200
committerBorislav Petkov2011-01-07 11:33:51 +0100
commit0092b20d4cf3de243b5c82b410ee02644cec2707 (patch)
treeb839d0953cf4949d93dd957f776aae0c4b9f8751 /drivers/edac/amd64_edac.h
parent395ae783b384e5243804b07fba3e3f8379ddf1d6 (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.h8
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;