diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-08-04 18:35:47 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-08-04 18:35:47 -0400 |
| commit | c71c090ff9c474d70af4796b5ea9f548a9d3b6b8 (patch) | |
| tree | 56e2d691b6d4851e84e9a0c5bc367852370224b0 | |
| parent | 78ec75cd1c81e01909005f392954c797f686d7bc (diff) | |
| parent | c2718348b41a8e7646516d9af8bb0231c6a44374 (diff) | |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/bp/bp
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/bp/bp:
amd64_edac: print debug statements only on error
amd64_edac: fix ECC checking
| -rw-r--r-- | drivers/edac/amd64_edac.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c index 24964c1d0af9..e2a10bcba7a1 100644 --- a/drivers/edac/amd64_edac.c +++ b/drivers/edac/amd64_edac.c | |||
| @@ -868,6 +868,8 @@ static void amd64_read_dbam_reg(struct amd64_pvt *pvt) | |||
| 868 | goto err_reg; | 868 | goto err_reg; |
| 869 | } | 869 | } |
| 870 | 870 | ||
| 871 | return; | ||
| 872 | |||
| 871 | err_reg: | 873 | err_reg: |
| 872 | debugf0("Error reading F2x%03x.\n", reg); | 874 | debugf0("Error reading F2x%03x.\n", reg); |
| 873 | } | 875 | } |
| @@ -2634,6 +2636,8 @@ static void amd64_read_mc_registers(struct amd64_pvt *pvt) | |||
| 2634 | 2636 | ||
| 2635 | amd64_dump_misc_regs(pvt); | 2637 | amd64_dump_misc_regs(pvt); |
| 2636 | 2638 | ||
| 2639 | return; | ||
| 2640 | |||
| 2637 | err_reg: | 2641 | err_reg: |
| 2638 | debugf0("Reading an MC register failed\n"); | 2642 | debugf0("Reading an MC register failed\n"); |
| 2639 | 2643 | ||
| @@ -2977,6 +2981,9 @@ static int amd64_check_ecc_enabled(struct amd64_pvt *pvt) | |||
| 2977 | "ECC is enabled by BIOS, Proceeding " | 2981 | "ECC is enabled by BIOS, Proceeding " |
| 2978 | "with EDAC module initialization\n"); | 2982 | "with EDAC module initialization\n"); |
| 2979 | 2983 | ||
| 2984 | /* Signal good ECC status */ | ||
| 2985 | ret = 0; | ||
| 2986 | |||
| 2980 | /* CLEAR the override, since BIOS controlled it */ | 2987 | /* CLEAR the override, since BIOS controlled it */ |
| 2981 | ecc_enable_override = 0; | 2988 | ecc_enable_override = 0; |
| 2982 | } | 2989 | } |
