]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
cpuidle: powerpc: cpuidle set polling before enabling irqs
authorNicholas Piggin <npiggin@gmail.com>
Wed, 14 Jun 2017 13:02:39 +0000 (23:02 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 28 Jun 2017 03:08:11 +0000 (13:08 +1000)
commit3fc5ee927ff4ffed6aa2fcd44d2fbf07ac893cdc
treef1baf035f55d69d0e3aec789e77ebe2873e78f9e
parent68fa6478e3b1fab7077d390070ed455aed93905c
cpuidle: powerpc: cpuidle set polling before enabling irqs

local_irq_enable can cause interrupts to be taken which could
take significant amount of processing time. The idle process
should set its polling flag before this, so another process that
wakes it during this time will not have to send an IPI.

Expand the TIF_POLLING_NRFLAG coverage to as large as possible.

Reviewed-by: Gautham R. Shenoy <ego@linux.vnet.ibm.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/cpuidle/cpuidle-powernv.c
drivers/cpuidle/cpuidle-pseries.c