fhandler_proc.cc(format_proc_cpuinfo): use feature test print macro
Add feature test print macro that makes feature, bit, and flag text comparison and checking easier. Handle as common former Intel only feature flags also supported on AMD. Change order and some flag names to agree with current Linux.
This commit is contained in:
parent
b8ccc22762
commit
08d1ae0543
|
@ -609,6 +609,8 @@ format_proc_stat (void *, char *&destbuf)
|
||||||
}
|
}
|
||||||
|
|
||||||
#define print(x) { bufptr = stpcpy (bufptr, (x)); }
|
#define print(x) { bufptr = stpcpy (bufptr, (x)); }
|
||||||
|
/* feature test bit position (0-32) and conditional print */
|
||||||
|
#define ftcprint(feat,bitno,msg) if ((feat) & (1 << (bitno))) { print (" " msg); }
|
||||||
|
|
||||||
static inline uint32_t
|
static inline uint32_t
|
||||||
get_msb (uint32_t in)
|
get_msb (uint32_t in)
|
||||||
|
@ -969,278 +971,170 @@ format_proc_cpuinfo (void *, char *&destbuf)
|
||||||
(features1 & (1 << 0)) ? "yes" : "no",
|
(features1 & (1 << 0)) ? "yes" : "no",
|
||||||
level);
|
level);
|
||||||
print ("flags\t\t:");
|
print ("flags\t\t:");
|
||||||
if (features1 & (1 << 0))
|
/* cpuid 0x00000001 edx */
|
||||||
print (" fpu");
|
ftcprint (features1, 0, "fpu"); /* x87 floating point */
|
||||||
if (features1 & (1 << 1))
|
ftcprint (features1, 1, "vme"); /* VM enhancements */
|
||||||
print (" vme");
|
ftcprint (features1, 2, "de"); /* debugging extensions */
|
||||||
if (features1 & (1 << 2))
|
ftcprint (features1, 3, "pse"); /* page size extensions */
|
||||||
print (" de");
|
ftcprint (features1, 4, "tsc"); /* rdtsc/p */
|
||||||
if (features1 & (1 << 3))
|
ftcprint (features1, 5, "msr"); /* rd/wrmsr */
|
||||||
print (" pse");
|
ftcprint (features1, 6, "pae"); /* phy addr extensions */
|
||||||
if (features1 & (1 << 4))
|
ftcprint (features1, 7, "mce"); /* Machine check exception */
|
||||||
print (" tsc");
|
ftcprint (features1, 8, "cx8"); /* cmpxchg8b */
|
||||||
if (features1 & (1 << 5))
|
ftcprint (features1, 9, "apic"); /* APIC enabled */
|
||||||
print (" msr");
|
ftcprint (features1, 11, "sep"); /* sysenter/sysexit */
|
||||||
if (features1 & (1 << 6))
|
ftcprint (features1, 12, "mtrr"); /* memory type range registers */
|
||||||
print (" pae");
|
ftcprint (features1, 13, "pge"); /* page global extension */
|
||||||
if (features1 & (1 << 7))
|
ftcprint (features1, 14, "mca"); /* machine check architecture */
|
||||||
print (" mce");
|
ftcprint (features1, 15, "cmov"); /* conditional move */
|
||||||
if (features1 & (1 << 8))
|
ftcprint (features1, 16, "pat"); /* page attribute table */
|
||||||
print (" cx8");
|
ftcprint (features1, 17, "pse36");/* 36 bit page size extensions */
|
||||||
if (features1 & (1 << 9))
|
ftcprint (features1, 18, "pn"); /* processor serial number */
|
||||||
print (" apic");
|
ftcprint (features1, 19, "clflush"); /* clflush instruction */
|
||||||
if (features1 & (1 << 11))
|
ftcprint (features1, 21, "dts"); /* debug store */
|
||||||
print (" sep");
|
ftcprint (features1, 22, "acpi"); /* ACPI via MSR */
|
||||||
if (features1 & (1 << 12))
|
ftcprint (features1, 23, "mmx"); /* multimedia extensions */
|
||||||
print (" mtrr");
|
ftcprint (features1, 24, "fxsr"); /* fxsave/fxrstor */
|
||||||
if (features1 & (1 << 13))
|
ftcprint (features1, 25, "sse"); /* xmm */
|
||||||
print (" pge");
|
ftcprint (features1, 26, "sse2"); /* xmm2 */
|
||||||
if (features1 & (1 << 14))
|
ftcprint (features1, 27, "ss"); /* CPU self snoop */
|
||||||
print (" mca");
|
ftcprint (features1, 28, "ht"); /* hyper threading */
|
||||||
if (features1 & (1 << 15))
|
ftcprint (features1, 29, "tm"); /* acc automatic clock control */
|
||||||
print (" cmov");
|
ftcprint (features1, 30, "ia64"); /* IA 64 processor */
|
||||||
if (features1 & (1 << 16))
|
ftcprint (features1, 31, "pbe"); /* pending break enable */
|
||||||
print (" pat");
|
|
||||||
if (features1 & (1 << 17))
|
|
||||||
print (" pse36");
|
|
||||||
if (features1 & (1 << 18))
|
|
||||||
print (" pn");
|
|
||||||
if (features1 & (1 << 19))
|
|
||||||
print (" clflush");
|
|
||||||
if (is_intel && features1 & (1 << 21))
|
|
||||||
print (" dts");
|
|
||||||
if (is_intel && features1 & (1 << 22))
|
|
||||||
print (" acpi");
|
|
||||||
if (features1 & (1 << 23))
|
|
||||||
print (" mmx");
|
|
||||||
if (features1 & (1 << 24))
|
|
||||||
print (" fxsr");
|
|
||||||
if (features1 & (1 << 25))
|
|
||||||
print (" sse");
|
|
||||||
if (features1 & (1 << 26))
|
|
||||||
print (" sse2");
|
|
||||||
if (is_intel && (features1 & (1 << 27)))
|
|
||||||
print (" ss");
|
|
||||||
if (features1 & (1 << 28))
|
|
||||||
print (" ht");
|
|
||||||
if (is_intel)
|
|
||||||
{
|
|
||||||
if (features1 & (1 << 29))
|
|
||||||
print (" tm");
|
|
||||||
if (features1 & (1 << 30))
|
|
||||||
print (" ia64");
|
|
||||||
if (features1 & (1 << 31))
|
|
||||||
print (" pbe");
|
|
||||||
}
|
|
||||||
|
|
||||||
|
/* AMD cpuid 0x80000001 edx */
|
||||||
if (is_amd && maxe >= 0x80000001)
|
if (is_amd && maxe >= 0x80000001)
|
||||||
{
|
{
|
||||||
cpuid (&unused, &unused, &unused, &features1, 0x80000001);
|
cpuid (&unused, &unused, &unused, &features1, 0x80000001);
|
||||||
|
|
||||||
if (features1 & (1 << 11))
|
ftcprint (features1, 11, "syscall"); /* syscall/sysret */
|
||||||
print (" syscall");
|
ftcprint (features1, 19, "mp"); /* MP capable */
|
||||||
if (features1 & (1 << 19)) /* Huh? Not in AMD64 specs. */
|
ftcprint (features1, 20, "nx"); /* no-execute protection */
|
||||||
print (" mp");
|
ftcprint (features1, 22, "mmxext"); /* MMX extensions */
|
||||||
if (features1 & (1 << 20))
|
ftcprint (features1, 25, "fxsr_opt"); /* fxsave/fxrstor optims */
|
||||||
print (" nx");
|
ftcprint (features1, 26, "pdpe1gb"); /* GB large pages */
|
||||||
if (features1 & (1 << 22))
|
ftcprint (features1, 27, "rdtscp"); /* rdtscp */
|
||||||
print (" mmxext");
|
ftcprint (features1, 29, "lm"); /* long mode (x86 64) */
|
||||||
if (features1 & (1 << 25))
|
ftcprint (features1, 30, "3dnowext"); /* 3DNow extensions */
|
||||||
print (" fxsr_opt");
|
ftcprint (features1, 31, "3dnow"); /* 3DNow */
|
||||||
if (features1 & (1 << 26))
|
|
||||||
print (" pdpe1gb");
|
|
||||||
if (features1 & (1 << 27))
|
|
||||||
print (" rdtscp");
|
|
||||||
if (features1 & (1 << 29))
|
|
||||||
print (" lm");
|
|
||||||
if (features1 & (1 << 30)) /* 31th bit is on. */
|
|
||||||
print (" 3dnowext");
|
|
||||||
if (features1 & (1 << 31)) /* 32th bit (highest) is on. */
|
|
||||||
print (" 3dnow");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (features2 & (1 << 0))
|
/* cpuid 0x00000001 ecx */
|
||||||
print (" pni");
|
ftcprint (features2, 0, "pni"); /* xmm3 sse3 */
|
||||||
if (is_intel)
|
ftcprint (features2, 1, "pclmuldq"); /* pclmulqdq instruction */
|
||||||
{
|
ftcprint (features2, 2, "dtes64"); /* 64-bit debug store */
|
||||||
if (features2 & (1 << 2))
|
ftcprint (features2, 3, "monitor"); /* monitor/mwait support */
|
||||||
print (" dtes64");
|
ftcprint (features2, 4, "ds_cpl"); /* CPL-qual debug store */
|
||||||
if (features2 & (1 << 3))
|
ftcprint (features2, 5, "vmx"); /* hardware virtualization */
|
||||||
print (" monitor");
|
ftcprint (features2, 6, "smx"); /* safer mode extensions */
|
||||||
if (features2 & (1 << 4))
|
ftcprint (features2, 7, "est"); /* enhanced speedstep */
|
||||||
print (" ds_cpl");
|
ftcprint (features2, 8, "tm2"); /* thermal monitor 2 */
|
||||||
if (features2 & (1 << 5))
|
ftcprint (features2, 9, "ssse3"); /* supplemental sse3 */
|
||||||
print (" vmx");
|
ftcprint (features2, 10, "cid"); /* context id */
|
||||||
if (features2 & (1 << 6))
|
ftcprint (features2, 11, "sdbg"); /* silicon debug */
|
||||||
print (" smx");
|
ftcprint (features2, 12, "fma"); /* fused multiply add */
|
||||||
if (features2 & (1 << 7))
|
ftcprint (features2, 13, "cx16"); /* cmpxchg16b instruction */
|
||||||
print (" est");
|
ftcprint (features2, 14, "xtpr"); /* send task priority messages */
|
||||||
if (features2 & (1 << 8))
|
ftcprint (features2, 15, "pdcm"); /* perf/debug capabilities MSR */
|
||||||
print (" tm2");
|
ftcprint (features2, 17, "pcid"); /* process context identifiers */
|
||||||
if (features2 & (1 << 9))
|
ftcprint (features2, 18, "dca"); /* direct cache access */
|
||||||
print (" ssse3");
|
ftcprint (features2, 19, "sse4_1"); /* xmm 4_1 sse 4.1 */
|
||||||
if (features2 & (1 << 10))
|
ftcprint (features2, 20, "sse4_2"); /* xmm 4_2 sse 4.2 */
|
||||||
print (" cid");
|
ftcprint (features2, 21, "x2apic"); /* x2 APIC */
|
||||||
if (features2 & (1 << 12))
|
ftcprint (features2, 22, "movbe"); /* movbe instruction */
|
||||||
print (" fma");
|
ftcprint (features2, 23, "popcnt"); /* popcnt instruction */
|
||||||
}
|
ftcprint (features2, 25, "aes"); /* AES instructions */
|
||||||
if (features2 & (1 << 13))
|
ftcprint (features2, 26, "xsave"); /* xsave/xrstor/xsetbv/xgetbv */
|
||||||
print (" cx16");
|
ftcprint (features2, 27, "osxsave"); /* not output on Linux */
|
||||||
if (is_intel)
|
ftcprint (features2, 28, "avx"); /* advanced vector extensions */
|
||||||
{
|
ftcprint (features2, 29, "f16c"); /* 16 bit FP conversions */
|
||||||
if (features2 & (1 << 14))
|
ftcprint (features2, 30, "rdrand"); /* RNG rdrand instruction */
|
||||||
print (" xtpr");
|
ftcprint (features2, 31, "hypervisor"); /* hypervisor guest */
|
||||||
if (features2 & (1 << 15))
|
|
||||||
print (" pdcm");
|
|
||||||
if (features2 & (1 << 18))
|
|
||||||
print (" dca");
|
|
||||||
if (features2 & (1 << 19))
|
|
||||||
print (" sse4_1");
|
|
||||||
if (features2 & (1 << 20))
|
|
||||||
print (" sse4_2");
|
|
||||||
if (features2 & (1 << 21))
|
|
||||||
print (" x2apic");
|
|
||||||
if (features2 & (1 << 22))
|
|
||||||
print (" movbe");
|
|
||||||
if (features2 & (1 << 23))
|
|
||||||
print (" popcnt");
|
|
||||||
if (features2 & (1 << 25))
|
|
||||||
print (" aes");
|
|
||||||
if (features2 & (1 << 26))
|
|
||||||
print (" xsave");
|
|
||||||
if (features2 & (1 << 27))
|
|
||||||
print (" osxsave");
|
|
||||||
if (features2 & (1 << 28))
|
|
||||||
print (" avx");
|
|
||||||
if (features2 & (1 << 29))
|
|
||||||
print (" f16c");
|
|
||||||
if (features2 & (1 << 30))
|
|
||||||
print (" rdrand");
|
|
||||||
if (features2 & (1 << 31))
|
|
||||||
print (" hypervisor");
|
|
||||||
}
|
|
||||||
|
|
||||||
|
/* cpuid 0x80000001 ecx */
|
||||||
if (maxe >= 0x80000001)
|
if (maxe >= 0x80000001)
|
||||||
{
|
{
|
||||||
cpuid (&unused, &unused, &features1, &unused, 0x80000001);
|
cpuid (&unused, &unused, &features1, &unused, 0x80000001);
|
||||||
|
|
||||||
if (features1 & (1 << 0))
|
ftcprint (features1, 0, "lahf_lm"); /* l/sahf long mode */
|
||||||
print (" lahf_lm");
|
ftcprint (features1, 1, "cmp_legacy"); /* HT not valid */
|
||||||
if (features1 & (1 << 1))
|
|
||||||
print (" cmp_legacy");
|
|
||||||
if (is_amd)
|
if (is_amd)
|
||||||
{
|
{
|
||||||
if (features1 & (1 << 2))
|
ftcprint (features1, 2, "svm"); /* secure VM */
|
||||||
print (" svm");
|
ftcprint (features1, 3, "extapic"); /* ext APIC space */
|
||||||
if (features1 & (1 << 3))
|
ftcprint (features1, 4, "cr8_legacy"); /* CR8 32 bit mode */
|
||||||
print (" extapic");
|
ftcprint (features1, 5, "abm"); /* adv bit manip lzcnt */
|
||||||
if (features1 & (1 << 4))
|
ftcprint (features1, 6, "sse4a"); /* sse 4a */
|
||||||
print (" cr8_legacy");
|
ftcprint (features1, 7, "misalignsse"); /* misaligned SSE ok */
|
||||||
if (features1 & (1 << 5))
|
ftcprint (features1, 8, "3dnowprefetch"); /* 3DNow prefetch */
|
||||||
print (" abm");
|
ftcprint (features1, 9, "osvw"); /* OS vis workaround */
|
||||||
if (features1 & (1 << 6))
|
|
||||||
print (" sse4a");
|
|
||||||
if (features1 & (1 << 7))
|
|
||||||
print (" misalignsse");
|
|
||||||
if (features1 & (1 << 8))
|
|
||||||
print (" 3dnowprefetch");
|
|
||||||
if (features1 & (1 << 9))
|
|
||||||
print (" osvw");
|
|
||||||
}
|
}
|
||||||
if (features1 & (1 << 10))
|
ftcprint (features1, 10, "ibs"); /* instr based sampling */
|
||||||
print (" ibs");
|
|
||||||
if (is_amd)
|
if (is_amd)
|
||||||
{
|
{
|
||||||
if (features1 & (1 << 11))
|
ftcprint (features1, 11, "xop"); /* sse 5 extended AVX */
|
||||||
print (" sse5");
|
ftcprint (features1, 12, "skinit"); /* skinit/stgi */
|
||||||
if (features1 & (1 << 12))
|
ftcprint (features1, 13, "wdt"); /* watchdog timer */
|
||||||
print (" skinit");
|
ftcprint (features1, 15, "lwp"); /* light weight prof */
|
||||||
if (features1 & (1 << 13))
|
ftcprint (features1, 16, "fma4"); /* 4 operand MAC */
|
||||||
print (" wdt");
|
ftcprint (features1, 17, "tce"); /* translat cache ext */
|
||||||
if (features1 & (1 << 15))
|
ftcprint (features1, 19, "nodeid_msr"); /* nodeid MSR */
|
||||||
print (" lwp");
|
ftcprint (features1, 21, "tbm"); /* trailing bit manip */
|
||||||
if (features1 & (1 << 16))
|
ftcprint (features1, 22, "topoext"); /* topology ext */
|
||||||
print (" fma4");
|
ftcprint (features1, 23, "perfctr_core"); /* core perf ctr ext */
|
||||||
if (features1 & (1 << 17))
|
ftcprint (features1, 24, "perfctr_nb"); /* NB perf ctr ext */
|
||||||
print (" tce");
|
ftcprint (features1, 28, "perfctr_llc"); /* ll cache perf ctr */
|
||||||
if (features1 & (1 << 19))
|
ftcprint (features1, 29, "mwaitx"); /* monitor/mwaitx ext */
|
||||||
print (" nodeid_msr");
|
|
||||||
if (features1 & (1 << 21))
|
|
||||||
print (" tbm");
|
|
||||||
if (features1 & (1 << 22))
|
|
||||||
print (" topoext");
|
|
||||||
if (features1 & (1 << 23))
|
|
||||||
print (" perfctr_core");
|
|
||||||
if (features1 & (1 << 24))
|
|
||||||
print (" perfctr_nb");
|
|
||||||
if (features1 & (1 << 28))
|
|
||||||
print (" perfctr_l2");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (is_intel) /* features scattered in various CPUID levels. */
|
|
||||||
|
/* features scattered in various CPUID levels. */
|
||||||
|
/* thermal & power cpuid 0x00000006 eax ecx */
|
||||||
|
if (maxf >= 0x06)
|
||||||
{
|
{
|
||||||
cpuid (&features1, &unused, &features2, &unused, 0x06);
|
cpuid (&features1, &unused, &features2, &unused, 0x06);
|
||||||
|
|
||||||
if (features1 & (1 << 1))
|
ftcprint (features2, 3, "epb"); /* energy perf bias */
|
||||||
print (" ida");
|
|
||||||
if (features1 & (1 << 2))
|
|
||||||
print (" arat");
|
|
||||||
if (features2 & (1 << 3))
|
|
||||||
print (" epb");
|
|
||||||
|
|
||||||
cpuid (&features2, &unused, &unused, &unused, 0x0d, 1);
|
ftcprint (features1, 0, "dtherm"); /* digital thermal sensor */
|
||||||
if (features2 & (1 << 0))
|
ftcprint (features1, 1, "ida"); /* Intel dynamic acceleration */
|
||||||
print (" xsaveopt");
|
ftcprint (features1, 2, "arat"); /* always running APIC timer */
|
||||||
|
ftcprint (features1, 4, "pln"); /* power limit notification */
|
||||||
if (features1 & (1 << 4))
|
ftcprint (features1, 6, "pts"); /* package thermal status */
|
||||||
print (" pln");
|
|
||||||
if (features1 & (1 << 6))
|
|
||||||
print (" pts");
|
|
||||||
if (features1 & (1 << 0))
|
|
||||||
print (" dtherm");
|
|
||||||
}
|
}
|
||||||
if (is_intel) /* Extended feature flags */
|
/* cpuid 0x00000007 ebx */
|
||||||
|
if (maxf >= 0x07)
|
||||||
{
|
{
|
||||||
cpuid (&unused, &features1, &unused, &unused, 0x07, 0);
|
cpuid (&unused, &features1, &unused, &unused, 0x07, 0);
|
||||||
|
|
||||||
if (features1 & (1 << 0))
|
ftcprint (features1, 0, "fsgsbase"); /* rd/wr fs/gs base */
|
||||||
print (" fsgsbase");
|
ftcprint (features1, 1, "tsc_adjust"); /* TSC adjustment MSR 0x3B */
|
||||||
if (features1 & (1 << 1))
|
ftcprint (features1, 3, "bmi1"); /* bit manip ext group 1 */
|
||||||
print (" tsc_adjust");
|
ftcprint (features1, 4, "hle"); /* hardware lock elision */
|
||||||
if (features1 & (1 << 3))
|
ftcprint (features1, 5, "avx2"); /* AVX ext instructions */
|
||||||
print (" bmi1");
|
ftcprint (features1, 7, "smep"); /* super mode exec prot */
|
||||||
if (features1 & (1 << 4))
|
ftcprint (features1, 8, "bmi2"); /* bit manip ext group 2 */
|
||||||
print (" hle");
|
ftcprint (features1, 9, "erms"); /* enh rep movsb/stosb */
|
||||||
if (features1 & (1 << 5))
|
ftcprint (features1, 10, "invpcid"); /* inv proc context id */
|
||||||
print (" avx2");
|
ftcprint (features1, 11, "rtm"); /* restricted txnal mem */
|
||||||
if (features1 & (1 << 7))
|
ftcprint (features1, 14, "mpx"); /* mem prot ext */
|
||||||
print (" smep");
|
ftcprint (features1, 16, "avx512f"); /* vec foundation */
|
||||||
if (features1 & (1 << 8))
|
ftcprint (features1, 18, "rdseed"); /* RNG rdseed instruction */
|
||||||
print (" bmi2");
|
ftcprint (features1, 19, "adx"); /* adcx/adox */
|
||||||
if (features1 & (1 << 9))
|
ftcprint (features1, 20, "smap"); /* sec mode access prev */
|
||||||
print (" erms");
|
ftcprint (features1, 23, "clflushopt"); /* cache line flush opt */
|
||||||
if (features1 & (1 << 10))
|
ftcprint (features1, 26, "avx512pf"); /* vec prefetch */
|
||||||
print (" invpcid");
|
ftcprint (features1, 27, "avx512er"); /* vec exp/recip aprx */
|
||||||
if (features1 & (1 << 11))
|
ftcprint (features1, 28, "avx512cd"); /* vec conflict detect */
|
||||||
print (" rtm");
|
}
|
||||||
if (features1 & (1 << 14))
|
|
||||||
print (" mpx");
|
/* cpuid 0x0000000d:1 eax */
|
||||||
if (features1 & (1 << 16))
|
if (maxf >= 0x0d)
|
||||||
print (" avx512f");
|
{
|
||||||
if (features1 & (1 << 18))
|
cpuid (&features1, &unused, &unused, &unused, 0x0d, 1);
|
||||||
print (" rdseed");
|
|
||||||
if (features1 & (1 << 19))
|
ftcprint (features1, 0, "xsaveopt"); /* xsaveopt instruction */
|
||||||
print (" adx");
|
|
||||||
if (features1 & (1 << 20))
|
|
||||||
print (" smap");
|
|
||||||
if (features1 & (1 << 23))
|
|
||||||
print (" clflushopt");
|
|
||||||
if (features1 & (1 << 26))
|
|
||||||
print (" avx512pf");
|
|
||||||
if (features1 & (1 << 27))
|
|
||||||
print (" avx512er");
|
|
||||||
if (features1 & (1 << 28))
|
|
||||||
print (" avx512cd");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
print ("\n");
|
print ("\n");
|
||||||
|
@ -1269,31 +1163,22 @@ format_proc_cpuinfo (void *, char *&destbuf)
|
||||||
phys, virt);
|
phys, virt);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* cpuid 0x80000007 edx */
|
||||||
if (maxe >= 0x80000007) /* Advanced power management. */
|
if (maxe >= 0x80000007) /* Advanced power management. */
|
||||||
{
|
{
|
||||||
cpuid (&unused, &unused, &unused, &features1, 0x80000007);
|
cpuid (&unused, &unused, &unused, &features1, 0x80000007);
|
||||||
|
|
||||||
print ("power management:");
|
print ("power management:");
|
||||||
if (features1 & (1 << 0))
|
ftcprint (features1, 0, "ts"); /* temperature sensor */
|
||||||
print (" ts");
|
ftcprint (features1, 1, "fid"); /* frequency id control */
|
||||||
if (features1 & (1 << 1))
|
ftcprint (features1, 2, "vid"); /* voltage id control */
|
||||||
print (" fid");
|
ftcprint (features1, 3, "ttp"); /* thermal trip */
|
||||||
if (features1 & (1 << 2))
|
ftcprint (features1, 4, "tm"); /* hw thermal control */
|
||||||
print (" vid");
|
ftcprint (features1, 5, "stc"); /* sw thermal control */
|
||||||
if (features1 & (1 << 3))
|
ftcprint (features1, 6, "100mhzsteps"); /* 100 MHz mult control */
|
||||||
print (" ttp");
|
ftcprint (features1, 7, "hwpstate"); /* hw P state control */
|
||||||
if (features1 & (1 << 4))
|
ftcprint (features1, 9, "cpb"); /* core performance boost */
|
||||||
print (" tm");
|
ftcprint (features1, 10, "eff_freq_ro"); /* ro eff freq interface */
|
||||||
if (features1 & (1 << 5))
|
|
||||||
print (" stc");
|
|
||||||
if (features1 & (1 << 6))
|
|
||||||
print (" 100mhzsteps");
|
|
||||||
if (features1 & (1 << 7))
|
|
||||||
print (" hwpstate");
|
|
||||||
if (features1 & (1 << 9))
|
|
||||||
print (" cpb");
|
|
||||||
if (features1 & (1 << 10))
|
|
||||||
print (" eff_freq_ro");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (orig_affinity_mask != 0)
|
if (orig_affinity_mask != 0)
|
||||||
|
|
Loading…
Reference in New Issue