cpu: idle notice if pm state changes
cpu: idle notice if pm state changes

The idle code checks pm_enabled once at entry, then not again
until the idle exit condition is met. Change this to check
each opportunity and change idle type if necessary.

Signed-off-by: Nicholas Piggin <24829078df5003d9dd1dd871ca2aeb0b1cf95ef4@gmail.com>
Signed-off-by: Stewart Smith <ec31ab75ddf977353c8f660f92ea8b23f64aef25@linux.vnet.ibm.com>

stewart-ibm/skiboot,qemu/skiboot,legoater/skiboot,open-power/skiboot,shenki/skiboot,legoater/skiboot,qemu/skiboot,shenki/skiboot,shenki/skiboot,stewart-ibm/skiboot,qemu/skiboot,open-power/skiboot,qemu/skiboot,legoater/skiboot,stewart-ibm/skiboot,legoater/skiboot,shenki/skiboot,open-power/skiboot,legoater/skiboot,shenki/skiboot,open-power/skiboot,open-power/skiboot,qemu/skiboot