summaryrefslogtreecommitdiff
path: root/arch/powerpc
diff options
context:
space:
mode:
authorVaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>2017-08-24 00:28:41 +0530
committerMichael Ellerman <mpe@ellerman.id.au>2017-11-13 08:00:29 +1100
commit8d4e10e9ed9450e18fbbf6a8872be0eac9fd4999 (patch)
treeb253e20bfac899bb3b9bfec1ab62e473f7978fdc /arch/powerpc
parentacdfe93101d0f5b968d1bd7ab125517bf7444047 (diff)
powerpc/powernv/idle: Round up latency and residency values
On PowerNV platforms, firmware provides exit latency and target residency for each of the idle states in nano seconds. Cpuidle framework expects the values in micro seconds. Round up to nearest micro seconds to avoid errors in cases where the values are defined as fractional micro seconds. Default idle state of 'snooze' has exit latency of zero. If other states have fractional micro second exit latency, they would get rounded down to zero micro second and make cpuidle framework choose deeper idle state when snooze loop is the right choice. Reported-by: Anton Blanchard <anton@samba.org> Signed-off-by: Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com> Reviewed-by: Gautham R. Shenoy <ego@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc')
0 files changed, 0 insertions, 0 deletions