Skip to content
Commit c6e8256a authored by Stephan Diestelhorst's avatar Stephan Diestelhorst Committed by Ingo Molnar
Browse files

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: default avatarIngo Molnar <mingo@elte.hu>
parent 475613b9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment