diff options
author | 2017-01-25 14:06:27 +0530 | |
---|---|---|
committer | 2017-01-31 08:32:13 +1100 | |
commit | 9e9fc6f00a54f7064dc681ac187be6498d566a4f (patch) | |
tree | 9652cb94411311503eee59715a3bce99795f18b6 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | powernv:stop: Rename pnv_arch300_idle_init to pnv_power9_idle_init (diff) | |
download | linux-rng-9e9fc6f00a54f7064dc681ac187be6498d566a4f.tar.xz linux-rng-9e9fc6f00a54f7064dc681ac187be6498d566a4f.zip |
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 <ego@linux.vnet.ibm.com>
Acked-by: Balbir Singh <bsingharora@gmail.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions