]> git.baikalelectronics.ru Git - kernel.git/commit
cpuidle: powernv: Read target_residency value of idle states from DT if available
authorPreeti U Murthy <preeti@linux.vnet.ibm.com>
Wed, 18 Feb 2015 05:34:17 +0000 (06:34 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 18 Feb 2015 05:34:17 +0000 (06:34 +0100)
commite217e821d60b20d76bf7cfa0a7461d68fe9a3296
treee8ca5ef30cc1bd687496139d9905452798dde8c8
parentebc8fd6171a727bed99afd18731330184b940665
cpuidle: powernv: Read target_residency value of idle states from DT if available

The device tree now exposes the residency values for different idle states. Read
these values instead of calculating residency from the latency values. The values
exposed in the DT are validated for optimal power efficiency. However to maintain
compatibility with the older firmware code which does not expose residency
values, use default values as a fallback mechanism. While at it, use better
APIs to parse the powermgmt device tree node.

Signed-off-by: Preeti U Murthy <preeti@linux.vnet.ibm.com>
Acked-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Acked-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpuidle/cpuidle-powernv.c