• Len Brown's avatar
    tools/power turbosat: fix AMD APIC-id output · 34041551
    Len Brown authored
    turbostat recently gained a feature adding APIC and X2APIC columns.
    While they are disabled by-default, they are enabled with --debug
    or when explicitly requested, eg.
    
    $ sudo turbostat --quiet --show Package,Node,Core,CPU,APIC,X2APIC date
    
    But these columns erroneously showed zeros on AMD hardware.
    This patch corrects the APIC and X2APIC [sic] columns on AMD.
    Signed-off-by: default avatarLen Brown <len.brown@intel.com>
    34041551
turbostat.c 145 KB