]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/powernv: Move CPU-Offline idle state invocation from smp.c to idle.c
authorGautham R. Shenoy <ego@linux.vnet.ibm.com>
Wed, 22 Mar 2017 15:04:14 +0000 (20:34 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 10 Apr 2017 22:45:09 +0000 (08:45 +1000)
commit9a1ecdccaeb5813709831395cc5501bc9f9c83c1
treefdc2d2a70872488ac399dcccca485722791ec528
parentf4b34298698fa27fde7610c6dfe6439403a6efc2
powerpc/powernv: Move CPU-Offline idle state invocation from smp.c to idle.c

Move the piece of code in powernv/smp.c::pnv_smp_cpu_kill_self() which
transitions the CPU to the deepest available platform idle state to a
new function named pnv_cpu_offline() in powernv/idle.c. The rationale
behind this code movement is that the data required to determine the
deepest available platform state resides in powernv/idle.c.

Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Gautham R. Shenoy <ego@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/cpuidle.h
arch/powerpc/platforms/powernv/idle.c
arch/powerpc/platforms/powernv/powernv.h
arch/powerpc/platforms/powernv/smp.c