powernv/cpuidle: Use parsed device tree values for cpuidle_init
authorAkshay Adiga <akshay.adiga@linux.vnet.ibm.com>
Thu, 5 Jul 2018 11:40:22 +0000 (17:10 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 31 Jul 2018 09:56:44 +0000 (19:56 +1000)
commit1961acad2f88559c2cdd2ef67c58c3627f1f6e54
treed816f4d12c4c4e5c8b25010a9f99ca4c2aac17c4
parent9c7b185ab2fe313b4426bf55da3624bef71f342b
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>
arch/powerpc/include/asm/cpuidle.h
drivers/cpuidle/cpuidle-powernv.c