• Andi Kleen's avatar
    x86: use the correct cpuid method to detect MWAIT support for C states · 0c07ee38
    Andi Kleen authored
    Previously there was a AMD specific quirk to handle the case of
    AMD Fam10h MWAIT not supporting any C states. But it turns out
    that CPUID already has ways to detectly detect that without
    using special quirks.
    
    The new code simply checks if MWAIT supports at least C1 and doesn't
    use it if it doesn't. No more vendor specific code.
    
    Note this is does not simply clear MWAIT because MWAIT can be still
    useful even without C states.
    
    Credit goes to Ben Serebrin for pointing out the (nearly) obvious.
    
    Cc: "Andreas Herrmann" <andreas.herrmann3@amd.com>
    Signed-off-by: default avatarAndi Kleen <ak@suse.de>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
    0c07ee38
process_32.c 22.1 KB