diff options
author | Borislav Petkov <borislav.petkov@amd.com> | 2011-02-23 11:25:12 -0500 |
---|---|---|
committer | Borislav Petkov <borislav.petkov@amd.com> | 2011-03-17 09:46:34 -0400 |
commit | 8c6717510f8002ea31b309c84b7d7a7f7c15197b (patch) | |
tree | 6fda1db2bb648c5ae7f446e3bedabd78da098fa5 /drivers/edac/amd64_edac.c | |
parent | e761359a25c26b59c2c1ddcc180a441bb442a5ba (diff) |
amd64_edac: Fix DCT argument type
Fix amd64_debug_display_dimm_sizes() arguments order per convention (pvt
is always first). Also, the now second arg denotes the DCT so adjust its
type.
Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Diffstat (limited to 'drivers/edac/amd64_edac.c')
-rw-r--r-- | drivers/edac/amd64_edac.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c index 1b8fa7a905eb..cc4f887c28f0 100644 --- a/drivers/edac/amd64_edac.c +++ b/drivers/edac/amd64_edac.c | |||
@@ -768,8 +768,7 @@ static enum edac_type amd64_determine_edac_cap(struct amd64_pvt *pvt) | |||
768 | return edac_cap; | 768 | return edac_cap; |
769 | } | 769 | } |
770 | 770 | ||
771 | 771 | static void amd64_debug_display_dimm_sizes(struct amd64_pvt *, u8); | |
772 | static void amd64_debug_display_dimm_sizes(int ctrl, struct amd64_pvt *pvt); | ||
773 | 772 | ||
774 | static void amd64_dump_dramcfg_low(u32 dclr, int chan) | 773 | static void amd64_dump_dramcfg_low(u32 dclr, int chan) |
775 | { | 774 | { |
@@ -817,13 +816,13 @@ static void dump_misc_regs(struct amd64_pvt *pvt) | |||
817 | 816 | ||
818 | debugf1(" DramHoleValid: %s\n", dhar_valid(pvt) ? "yes" : "no"); | 817 | debugf1(" DramHoleValid: %s\n", dhar_valid(pvt) ? "yes" : "no"); |
819 | 818 | ||
820 | amd64_debug_display_dimm_sizes(0, pvt); | 819 | amd64_debug_display_dimm_sizes(pvt, 0); |
821 | 820 | ||
822 | /* everything below this point is Fam10h and above */ | 821 | /* everything below this point is Fam10h and above */ |
823 | if (boot_cpu_data.x86 == 0xf) | 822 | if (boot_cpu_data.x86 == 0xf) |
824 | return; | 823 | return; |
825 | 824 | ||
826 | amd64_debug_display_dimm_sizes(1, pvt); | 825 | amd64_debug_display_dimm_sizes(pvt, 1); |
827 | 826 | ||
828 | amd64_info("using %s syndromes.\n", ((pvt->ecc_sym_sz == 8) ? "x8" : "x4")); | 827 | amd64_info("using %s syndromes.\n", ((pvt->ecc_sym_sz == 8) ? "x8" : "x4")); |
829 | 828 | ||
@@ -1536,7 +1535,7 @@ static void f1x_map_sysaddr_to_csrow(struct mem_ctl_info *mci, u64 sys_addr, | |||
1536 | * debug routine to display the memory sizes of all logical DIMMs and its | 1535 | * debug routine to display the memory sizes of all logical DIMMs and its |
1537 | * CSROWs | 1536 | * CSROWs |
1538 | */ | 1537 | */ |
1539 | static void amd64_debug_display_dimm_sizes(int ctrl, struct amd64_pvt *pvt) | 1538 | static void amd64_debug_display_dimm_sizes(struct amd64_pvt *pvt, u8 ctrl) |
1540 | { | 1539 | { |
1541 | int dimm, size0, size1, factor = 0; | 1540 | int dimm, size0, size1, factor = 0; |
1542 | u32 *dcsb = ctrl ? pvt->csels[1].csbases : pvt->csels[0].csbases; | 1541 | u32 *dcsb = ctrl ? pvt->csels[1].csbases : pvt->csels[0].csbases; |