sh: sr.bl toggling around idle sleep.
authorPaul Mundt <lethal@linux-sh.org>
Mon, 14 May 2007 10:39:48 +0000 (19:39 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 21 May 2007 05:34:25 +0000 (14:34 +0900)
commitf3a9022fd187de41a04de9c5b44ff40e68c6d661
tree352fd4f2bc35469721a218093bf4e65a6c1d9209
parent69d87daa18aced7f494bc1d5a977b063bbbdffbd
sh: sr.bl toggling around idle sleep.

As pointed out by Saito-san, without the sr.bl manipulation we can
occasionally hit delays in the idle loop due to interrupt handling, so
ensure that interrupts are blocked before going to sleep.

At the same time, we throw in TIF_POLLING_NRFLAG for the !hlt_counter
case (primarily used by the ST-40 parts).

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/process.c