]> Git Repo - linux.git/commit - drivers/cpuidle/cpuidle-powernv.c
cpuidle:powernv: Add helper function to populate powernv idle states.
authorGautham R. Shenoy <[email protected]>
Wed, 25 Jan 2017 08:36:27 +0000 (14:06 +0530)
committerMichael Ellerman <[email protected]>
Mon, 30 Jan 2017 21:32:13 +0000 (08:32 +1100)
commit9e9fc6f00a54f7064dc681ac187be6498d566a4f
tree9652cb94411311503eee59715a3bce99795f18b6
parentdd34c74c97b6c3ed1ac7caec0b46267142659aff
cpuidle:powernv: Add helper function to populate powernv idle states.

In the current code for powernv_add_idle_states, there is a lot of code
duplication while initializing an idle state in powernv_states table.

Add an inline helper function to populate the powernv_states[] table
for a given idle state. Invoke this for populating the "Nap",
"Fastsleep" and the stop states in powernv_add_idle_states.

Signed-off-by: Gautham R. Shenoy <[email protected]>
Acked-by: Balbir Singh <[email protected]>
Acked-by: Rafael J. Wysocki <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
drivers/cpuidle/cpuidle-powernv.c
include/linux/cpuidle.h
This page took 0.049138 seconds and 4 git commands to generate.