]> git.baikalelectronics.ru Git - kernel.git/commit
x86, cpufreq: fix Speedfreq-SMI call that clobbers ECX
authorStephan Diestelhorst <langer_mann@web.de>
Mon, 10 Mar 2008 15:05:41 +0000 (16:05 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 26 Mar 2008 21:23:40 +0000 (22:23 +0100)
commit18ec89a826ceeab8a78632243c1301b65c13b28e
tree596ea5db734559345a0d389f374902ab5132e3cb
parent802414d5374bac137d325b80e2b32993d881e5f5
x86, cpufreq: fix Speedfreq-SMI call that clobbers ECX

I have found that using SMI to change the cpu's frequency on my DELL
Latitude L400 clobbers the ECX register in speedstep_set_state, causing
unneccessary retries because the "state" variable has changed silently (GCC
assumes it is still present in ECX).

play safe and avoid gcc caching any register across IO port accesses
that trigger SMIs.

Signed-off by: <Stephan.Diestelhorst@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/cpufreq/speedstep-smi.c