amd64_edac: Rewrite unganged mode code of f10_early_channel_count
authorWan Wei <onewayforever@gmail.com>
Fri, 7 Aug 2009 15:04:49 +0000 (17:04 +0200)
committerBorislav Petkov <borislav.petkov@amd.com>
Wed, 16 Sep 2009 10:42:55 +0000 (12:42 +0200)
commit57a30854c89f862eeada4cce822f3a87bc006c95
treec1afba1d83b919e76dd63aca5855e369ae10db87
parentbe3468e8ff768c986849870b24e85fa84806da73
amd64_edac: Rewrite unganged mode code of f10_early_channel_count

Simplify the procedure by checking if there is any DIMM in each channel.
This patch will fix the bugs such as when there is no DIMMs under
certain node, two DIMMs in the same channel, and only one DIMM in each
channel of the node.

Borislav: minor fixups

Signed-off-by: Wan Wei <wanwei@mail.dawning.com.cn>
Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
drivers/edac/amd64_edac.c