• A
    x86, amd: Restrict usage of c1e_idle() · 035a02c1
    Andreas Herrmann 提交于
    Currently c1e_idle returns true for all CPUs greater than or equal to
    family 0xf model 0x40. This covers too many CPUs.
    
    Meanwhile a respective erratum for the underlying problem was filed
    (#400). This patch adds the logic to check whether erratum #400
    applies to a given CPU.
    Especially for CPUs where SMI/HW triggered C1e is not supported,
    c1e_idle() doesn't need to be used. We can check this by looking at
    the respective OSVW bit for erratum #400.
    
    Cc: <stable@kernel.org> # .32.x .33.x
    Signed-off-by: NAndreas Herrmann <andreas.herrmann3@amd.com>
    LKML-Reference: <20100319110922.GA19614@alberich.amd.com>
    Signed-off-by: NH. Peter Anvin <hpa@zytor.com>
    035a02c1
msr-index.h 13.9 KB