• Andi Kleen's avatar
    x86: don't disable TSC in any C states on AMD Fam10h · ddb25f9a
    Andi Kleen authored
    The ACPI code currently disables TSC use in any C2 and C3
    states. But the AMD Fam10h BKDG documents that the TSC
    will never stop in any C states when the CONSTANT_TSC bit is
    set. Make this disabling conditional on CONSTANT_TSC
    not set on AMD.
    
    I actually think this is true on Intel too for C2 states
    on CPUs with p-state invariant TSC, but this needs
    further discussions with Len to really confirm :-)
    
    So far it is only enabled on AMD.
    
    Cc: lenb@kernel.org
    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>
    ddb25f9a
processor_idle.c 46.5 KB