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)
commit92c83ff5b42b109c94fdeee53cb31f674f776d75
treee8ca5ef30cc1bd687496139d9905452798dde8c8
parent5177a94aea6fbffc897aaee29c7cde57f951b541
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