]> git.baikalelectronics.ru Git - kernel.git/commit
[SPARC64]: Use sun4v_cpu_idle() in cpu_idle() on SUN4V.
authorDavid S. Miller <davem@sunset.davemloft.net>
Wed, 22 Feb 2006 00:55:23 +0000 (16:55 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 20 Mar 2006 09:13:54 +0000 (01:13 -0800)
commit99f74c83cd92e68b6b830d716443294280c18604
tree1aa37a82f44084b5fd854bf010ac224d2d660079
parentc9951fa1c4c1cfd800745f9e31f14252b0dc5c45
[SPARC64]: Use sun4v_cpu_idle() in cpu_idle() on SUN4V.

We have to turn off the "polling nrflag" bit when we sleep
the cpu like this, so that we'll get a cross-cpu interrupt
to wake the processor up from the yield.

We also have to disable PSTATE_IE in %pstate around the yield
call and recheck need_resched() in order to avoid any races.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/kernel/process.c