x86, msr: Unify rdmsr_on_cpus/wrmsr_on_cpus
authorBorislav Petkov <borislav.petkov@amd.com>
Thu, 30 Jul 2009 09:10:02 +0000 (11:10 +0200)
committerIngo Molnar <mingo@elte.hu>
Tue, 15 Sep 2009 07:15:54 +0000 (09:15 +0200)
commitb8a4754147d61f5359a765a3afd3eb03012aa052
tree96cafcc008b5367810adbaa2d3d501210568be84
parent0cc6d77e55eca9557bbe41bf2db94b31aa8fcb2a
x86, msr: Unify rdmsr_on_cpus/wrmsr_on_cpus

Since rdmsr_on_cpus and wrmsr_on_cpus are almost identical, unify them
into a common __rwmsr_on_cpus helper thus avoiding code duplication.

While at it, convert cpumask_t's to const struct cpumask *.

Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/msr.h
arch/x86/lib/msr.c