]> git.baikalelectronics.ru Git - kernel.git/commit
amd64_edac: check NB MCE bank enable on the current node properly
authorBorislav Petkov <borislav.petkov@amd.com>
Wed, 16 Sep 2009 11:05:46 +0000 (13:05 +0200)
committerBorislav Petkov <borislav.petkov@amd.com>
Wed, 16 Sep 2009 11:05:46 +0000 (13:05 +0200)
commit87ccbd9a0c7d51e1ee8d7f1933a90fdbc6b2652c
tree7634d878082199d9880b99b52c00ccb341ea1db9
parent8b2eac27a8ebcc9f66f0638f609eaea0b99dc4e2
amd64_edac: check NB MCE bank enable on the current node properly

The old code was using smp_call_function_many which skips the current
cpu if it is in the supplied cpumask. Switch to the rdmsr_on_cpus()
interface which takes care of that.

In addition, add get_cpus_on_this_dct_cpumask helper which computes a
cpumask of all the cores on a node and thus on a DCT.

Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
drivers/edac/amd64_edac.c