[PATCH] cpuinfo:power management: add proc_feedback, acc_power

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] cpuinfo:power management: add proc_feedback, acc_power

Brian Inglis
linux 4.6 x86/cpu: Add advanced power management bits
Bit 11 of CPUID 8000_0007 edx is processor feedback interface.
Bit 12 of CPUID 8000_0007 edx is accumulated power.

Print proper names in /proc/cpuinfo

[missed enabling this 2016 change during previous major cpuinfo update
as no power related changes were made to the Linux files since then]
---
 winsup/cygwin/fhandler_proc.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/winsup/cygwin/fhandler_proc.cc b/winsup/cygwin/fhandler_proc.cc
index 030ade68a..605a8443f 100644
--- a/winsup/cygwin/fhandler_proc.cc
+++ b/winsup/cygwin/fhandler_proc.cc
@@ -1397,8 +1397,8 @@ format_proc_cpuinfo (void *, char *&destbuf)
 /*  ftcprint (features1,  8, "invariant_tsc"); */ /* TSC invariant */
   ftcprint (features1,  9, "cpb");          /* core performance boost */
   ftcprint (features1, 10, "eff_freq_ro");  /* ro eff freq interface */
-/*  ftcprint (features1, 11, "proc_feedback"); */ /* proc feedback if */
-/*  ftcprint (features1, 12, "acc_power"); */ /* core power reporting */
+  ftcprint (features1, 11, "proc_feedback");/* proc feedback if */
+  ftcprint (features1, 12, "acc_power");    /* core power reporting */
 /*  ftcprint (features1, 13, "connstby"); */  /* connected standby */
 /*  ftcprint (features1, 14, "rapl"); */    /* running average power limit */
  }
--
2.21.0

Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] cpuinfo:power management: add proc_feedback, acc_power

Corinna Vinschen-2
On Feb 25 16:44, Brian Inglis wrote:

> linux 4.6 x86/cpu: Add advanced power management bits
> Bit 11 of CPUID 8000_0007 edx is processor feedback interface.
> Bit 12 of CPUID 8000_0007 edx is accumulated power.
>
> Print proper names in /proc/cpuinfo
>
> [missed enabling this 2016 change during previous major cpuinfo update
> as no power related changes were made to the Linux files since then]
> ---
>  winsup/cygwin/fhandler_proc.cc | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/winsup/cygwin/fhandler_proc.cc b/winsup/cygwin/fhandler_proc.cc
> index 030ade68a..605a8443f 100644
> --- a/winsup/cygwin/fhandler_proc.cc
> +++ b/winsup/cygwin/fhandler_proc.cc
> @@ -1397,8 +1397,8 @@ format_proc_cpuinfo (void *, char *&destbuf)
>  /*  ftcprint (features1,  8, "invariant_tsc"); */ /* TSC invariant */
>    ftcprint (features1,  9, "cpb");          /* core performance boost */
>    ftcprint (features1, 10, "eff_freq_ro");  /* ro eff freq interface */
> -/*  ftcprint (features1, 11, "proc_feedback"); */ /* proc feedback if */
> -/*  ftcprint (features1, 12, "acc_power"); */ /* core power reporting */
> +  ftcprint (features1, 11, "proc_feedback");/* proc feedback if */
> +  ftcprint (features1, 12, "acc_power");    /* core power reporting */
>  /*  ftcprint (features1, 13, "connstby"); */  /* connected standby */
>  /*  ftcprint (features1, 14, "rapl"); */    /* running average power limit */
>   }
> --
> 2.21.0
Pushed.


Thanks,
Corinna

--
Corinna Vinschen
Cygwin Maintainer

signature.asc (849 bytes) Download Attachment