This is the mail archive of the cygwin-cvs@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[newlib-cygwin] Support cpb and eff_freq_ro power mgmt flags in /proc/cpuinfo


https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=861a27db66fa86e3c745a5b4234063037c67ddf9

commit 861a27db66fa86e3c745a5b4234063037c67ddf9
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Mon Aug 17 10:04:33 2015 +0200

    Support cpb and eff_freq_ro power mgmt flags in /proc/cpuinfo
    
            * fhandler_proc.cc (format_proc_cpuinfo): Print cpb and eff_freq_ro
            power management flags.
    
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>

Diff:
---
 winsup/cygwin/ChangeLog        | 5 +++++
 winsup/cygwin/fhandler_proc.cc | 4 ++++
 2 files changed, 9 insertions(+)

diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 6b82e32..3a2f981 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2015-08-17  Corinna Vinschen  <corinna@vinschen.de>
+
+	* fhandler_proc.cc (format_proc_cpuinfo): Print cpb and eff_freq_ro
+	power management flags.
+
 2015-08-15  Corinna Vinschen  <corinna@vinschen.de>
 
 	* fhandler.cc (fhandler_base_overlapped::raw_write): When performing
diff --git a/winsup/cygwin/fhandler_proc.cc b/winsup/cygwin/fhandler_proc.cc
index 13311b8..55e13cd 100644
--- a/winsup/cygwin/fhandler_proc.cc
+++ b/winsup/cygwin/fhandler_proc.cc
@@ -1256,6 +1256,10 @@ format_proc_cpuinfo (void *, char *&destbuf)
 	    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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]