idle: Make idle flags endian safe
idle: Make idle flags endian safe

The idle flag IDLE_LOSE_HYP_CONTEXT can be wrongly interpreted for
IDLE_USE_INST_SLEEP if the kernel has endian bug, which would
incorrectly enable fastsleep even though the device tree does not
advertise it.

Unfortunately, some kernels currently do have such a bug.

Additionally, current fastsleep wakeup path makes opal calls to sync
timebase which is not endian safe.  This can lead to checkstops.
Hence for now change the bits used in IDLE_LOSE_HYP_CONTEXT to avoid
misinterpretation with IDLE_USE_INST_SLEEP in LE kernels.

Signed-off-by: Preeti U Murthy <437f8f4633f3d09bf55bbcfb98d29bc10a99c7d0@linux.vnet.ibm.com>
Signed-off-by: Vaidyanathan Srinivasan <c012decff9dffda4c10860ab2ba9eb53320d90bc@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <a7089bb6e7e92505d88aaff006cbdd60cc9120b6@kernel.crashing.org>

shenki/skiboot,shenki/skiboot,qemu/skiboot,neelegup/skiboot,qemu/skiboot,csmart/skiboot,jk-ozlabs/skiboot,apopple/skiboot,neelegup/skiboot,mikey/skiboot,csmart/skiboot,qemu/skiboot,ddstreet/skiboot,cyrilbur-ibm/skiboot,cyrilbur-ibm/skiboot,stewart-ibm/skiboot,apopple/skiboot,neelegup/skiboot,legoater/skiboot,jk-ozlabs/skiboot,qemu/skiboot,shenki/skiboot,csmart/skiboot,qemu/skiboot,mikey/skiboot,legoater/skiboot,legoater/skiboot,open-power/skiboot,mikey/skiboot,open-power/skiboot,ddstreet/skiboot,ddstreet/skiboot,stewart-ibm/skiboot,shenki/skiboot,stewart-ibm/skiboot,legoater/skiboot,legoater/skiboot,open-power/skiboot,jk-ozlabs/skiboot,open-power/skiboot,apopple/skiboot,shenki/skiboot,open-power/skiboot,cyrilbur-ibm/skiboot