diff options
author | Akshay Adiga <akshay.adiga@linux.vnet.ibm.com> | 2018-07-05 13:40:22 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-07-31 11:56:44 +0200 |
commit | 1961acad2f88559c2cdd2ef67c58c3627f1f6e54 (patch) | |
tree | d816f4d12c4c4e5c8b25010a9f99ca4c2aac17c4 /arch/powerpc/include/asm/cpuidle.h | |
parent | powernv/cpuidle: Parse dt idle properties into global structure (diff) | |
download | linux-1961acad2f88559c2cdd2ef67c58c3627f1f6e54.tar.xz linux-1961acad2f88559c2cdd2ef67c58c3627f1f6e54.zip |
powernv/cpuidle: Use parsed device tree values for cpuidle_init
Export pnv_idle_states and nr_pnv_idle_states so that its accessible to
cpuidle driver. Use properties from pnv_idle_states structure for powernv
cpuidle_init.
Signed-off-by: Akshay Adiga <akshay.adiga@linux.vnet.ibm.com>
Reviewed-by: Nicholas Piggin <npiggin@gmail.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/include/asm/cpuidle.h')
-rw-r--r-- | arch/powerpc/include/asm/cpuidle.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/cpuidle.h b/arch/powerpc/include/asm/cpuidle.h index 574b0ce1d671..43e5f31fe64d 100644 --- a/arch/powerpc/include/asm/cpuidle.h +++ b/arch/powerpc/include/asm/cpuidle.h @@ -90,6 +90,8 @@ struct pnv_idle_states_t { bool valid; }; +extern struct pnv_idle_states_t *pnv_idle_states; +extern int nr_pnv_idle_states; extern u32 pnv_fastsleep_workaround_at_entry[]; extern u32 pnv_fastsleep_workaround_at_exit[]; |