Re: [PATCH]lscpu: Read available CPUs max and min frequencies

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Thanks for your review comments...

On 04/18/2017 04:01 PM, Karel Zak wrote:
On Mon, Apr 17, 2017 at 11:00:50AM +0200, Rüdiger Meier wrote:
On 04/17/2017 10:30 AM, Mamatha Inamdar wrote:
Problem: On power syatems "lscpu frequency-info" command was always
reading CPU0 max and min frequencies. If CPU0 is guarded or offline
then it used to display max and min frequencies as NULL.

Solution: This patch will check for the available/online CPUs
and read the max/min frequencies of that CPU
Maybe we could do it even more generically, not letting the first lookup win
but really using the minimum/maximum over *all* CPUs. Who knows, maybe
different cores could have different min/max.
Good point.

We already have this information for all CPUs in the desc->maxmhz[]
and desc->minmhz[].  So all we need is function that will return
max/min from the arrays.

     Karel

I have worked on your comments and sent new version of patch, please review and let me
know your comments.


--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux