4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-03-03 13:35:46 +08:00

format_proc_cpuinfo: add Linux 5.13 AMD/Hygon rapl

Linux 5.13 Opossums on Parade added features and changes:
add AMD 0x80000007 EDX:14 rapl runtime average power limit
This commit is contained in:
Brian Inglis 2021-06-29 11:09:24 -06:00 committed by Corinna Vinschen
parent 98e3aeb1f5
commit 7323efd73c

View File

@ -1165,6 +1165,14 @@ format_proc_cpuinfo (void *, char *&destbuf)
ftcprint (features1, 0, "aperfmperf"); /* P state hw coord fb */
}
/* cpuid 0x80000007 edx Advanced power management */
if (maxe >= 0x80000007)
{
cpuid (&unused, &unused, &unused, &features2, 0x80000007);
ftcprint (features2, 14, "rapl"); /* runtime avg power limit */
}
/* Penwell, Cloverview, ... TSC doesn't sleep on S3 */
if (is_intel && family == 6)
switch (model)