[PATCH 2/3] pm: Handle HID0_SLEEP in the TLF_NAPPING hack.
scottwood at freescale.com
Wed Sep 12 07:50:45 EST 2007
Paul Mackerras wrote:
> Scott Wood writes:
>> The e300 core (and probably most other 6xx chips) can only come out of
>> sleep mode with an interrupt. However, interrupts are logically disabled
>> by the power management layer.
>> This hack extends the existing doze/nap hack to also suppress the running
>> of the interrupt handler when in sleep mode.
> Having thought about this for a bit, I have come to the conclusion
> that it would be a lot cleaner to use a new TLF_SLEEPING bit rather
> than having to read HID0 to know whether we were napping or sleeping.
> There are plenty of bits left in thread_info.local_flags; we've only
> used 1 so far. :)
More information about the Linuxppc-dev