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 -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com -- 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