]> git.baikalelectronics.ru Git - kernel.git/commit
cpuidle: pseries: Set the latency-hint before entering CEDE
authorGautham R. Shenoy <ego@linux.vnet.ibm.com>
Thu, 30 Jul 2020 05:32:55 +0000 (11:02 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 30 Jul 2020 12:53:50 +0000 (22:53 +1000)
commit019c0c5904c6d49b7723047fd5ae34c3b332a9c9
tree5cc7533357bebcef6c74b51185cd230cec6e8d81
parent9eaf89d1955728f6e4838a82fac007e4609691bf
cpuidle: pseries: Set the latency-hint before entering CEDE

As per the PAPR, each H_CEDE call is associated with a latency-hint to
be passed in the VPA field "cede_latency_hint". The CEDE states that
we were implicitly entering so far is CEDE with latency-hint = 0.

This patch explicitly sets the latency hint corresponding to the CEDE
state that we are currently entering. While at it, we save the
previous hint, to be restored once we wakeup from CEDE. This will be
required in the future when we expose extended-cede states through the
cpuidle framework, where each of them will have a different
cede-latency hint.

Signed-off-by: Gautham R. Shenoy <ego@linux.vnet.ibm.com>
[mpe: Make cede_latency_hint static]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/1596087177-30329-2-git-send-email-ego@linux.vnet.ibm.com
drivers/cpuidle/cpuidle-pseries.c