• Stephan Diestelhorst's avatar
    x86, cpufreq: fix Speedfreq-SMI call that clobbers ECX · c6e8256a
    Stephan Diestelhorst authored
    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>
    c6e8256a
speedstep-smi.c 11.2 KB