amd64_edac: check only ECC bit in amd64_determine_edac_cap
authorBorislav Petkov <borislav.petkov@amd.com>
Wed, 10 Jun 2009 16:29:54 +0000 (18:29 +0200)
committerBorislav Petkov <borislav.petkov@amd.com>
Fri, 26 Jun 2009 11:06:40 +0000 (13:06 +0200)
Checking whether the machine is using ECC enabled DRAM is done through
testing the DimmEccEn bit in the DRAM Cfg Low register (F2x[1,0]90). Do
that instead of testing all bits from the DimmEccEn upwards.

Also, remove mci->edac_cap assignment and use value returned from
amd64_determine_edac_cap().

Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>

No differences found