Alexey Dobriyan b077ffb3b7 rdmsr_on_cpu, wrmsr_on_cpu
There was OpenVZ specific bug rendering some cpufreq drivers unusable on SMP.
In short, when cpufreq code thinks it confined itself to needed cpu by means
of set_cpus_allowed() to execute rdmsr, some "virtual cpu" feature can migrate
process to anywhere.  This triggers bugons and does wrong things in general.

This got fixed by introducing rdmsr_on_cpu and wrmsr_on_cpu executing rdmsr
and wrmsr on given physical cpu by means of smp_call_function_single().

Dave Jones mentioned cpufreq might be not only user of rdmsr_on_cpu() and
wrmsr_on_cpu(), so I'm putting them into arch/{i386,x86_64}/lib/ .

Signed-off-by: Alexey Dobriyan <adobriyan@openvz.org>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Dave Jones <davej@redhat.com>
2007-02-20 14:23:43 -05:00
..
2006-10-28 11:30:52 -07:00
2006-12-08 08:28:39 -08:00
2007-01-26 13:50:58 -08:00
2007-01-26 13:50:58 -08:00
2006-11-01 09:11:00 -08:00
2007-02-09 09:14:07 -08:00
2006-10-03 08:03:41 -07:00
2006-02-15 15:32:22 -08:00
2006-12-07 02:14:12 +01:00
2007-02-20 14:23:43 -05:00
2006-12-07 02:14:01 +01:00
2007-01-26 13:50:58 -08:00
2006-12-07 02:14:01 +01:00
2006-09-26 10:52:32 +02:00
2006-06-29 16:58:06 -07:00
2006-12-07 08:39:37 -08:00
2006-12-15 08:47:51 -08:00
2006-10-12 22:25:03 -05:00