* [PATCH] format_proc_cpuinfo: add Linux 5.13 AMD/Hygon rapl
@ 2021-06-29 17:09 Brian Inglis
2021-07-06 14:06 ` Corinna Vinschen
0 siblings, 1 reply; 2+ messages in thread
From: Brian Inglis @ 2021-06-29 17:09 UTC (permalink / raw)
To: cygwin-patches
[-- Attachment #1: Type: text/plain, Size: 201 bytes --]
Linux 5.13 Opossums on Parade added features and changes:
add AMD 0x80000007 EDX:14 rapl runtime average power limit
---
winsup/cygwin/fhandler_proc.cc | 8 ++++++++
1 file changed, 8 insertions(+)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-format_proc_cpuinfo-add-Linux-5.13-AMD-Hygon-rapl.patch --]
[-- Type: text/x-patch; name="0001-format_proc_cpuinfo-add-Linux-5.13-AMD-Hygon-rapl.patch", Size: 686 bytes --]
diff --git a/winsup/cygwin/fhandler_proc.cc b/winsup/cygwin/fhandler_proc.cc
index 7cd0b3af02a2..2a64e7428efa 100644
--- a/winsup/cygwin/fhandler_proc.cc
+++ b/winsup/cygwin/fhandler_proc.cc
@@ -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)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-07-06 14:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-29 17:09 [PATCH] format_proc_cpuinfo: add Linux 5.13 AMD/Hygon rapl Brian Inglis
2021-07-06 14:06 ` Corinna Vinschen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).