From 395ae783b384e5243804b07fba3e3f8379ddf1d6 Mon Sep 17 00:00:00 2001 From: Borislav Petkov Date: Fri, 1 Oct 2010 18:38:19 +0200 Subject: amd64_edac: Add per-family init function Run a per-family init function which does all the settings based on the family this driver instance is running on. Move the scrubrate calculation in it and simplify code. Signed-off-by: Borislav Petkov --- drivers/edac/amd64_edac.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'drivers/edac/amd64_edac.h') diff --git a/drivers/edac/amd64_edac.h b/drivers/edac/amd64_edac.h index c8f2734..e5204fe 100644 --- a/drivers/edac/amd64_edac.h +++ b/drivers/edac/amd64_edac.h @@ -461,6 +461,9 @@ struct amd64_pvt { /* MC Type Index value: socket F vs Family 10h */ u32 mc_type_index; + /* DCT per-family scrubrate setting */ + u32 min_scrubrate; + /* misc settings */ struct flags { unsigned long cf8_extcfg:1; -- cgit v1.1