]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] Always call cede in pseries dedicated idle loop
authorAnton Blanchard <anton@samba.org>
Fri, 22 Sep 2006 10:30:14 +0000 (20:30 +1000)
committerPaul Mackerras <paulus@samba.org>
Tue, 26 Sep 2006 05:24:34 +0000 (15:24 +1000)
commitf932c3d6fef961b7cd4e5d958636a387d2d7441b
tree9dbab98d6aa3093cd24e8ed331559444e230c32a
parent21adb19c3faf186bca711c4774b464287b41738e
[POWERPC] Always call cede in pseries dedicated idle loop

The smt_snooze_delay logic changed a bit when the idle loops were
consolidated. A value of 0 used to mean we always polled, now it means
we always sleep. Instead of restoring the old behaviour, lets put a
reasonable default in smt_snooze_delay. This means we spin for a bit
(in case an external interrupt comes in) and then sleep.

Also the pseries dedicated idle loop currently does not cede both
threads in an SMT pair. The hypervisor wants us to call in so it can
power manage, so lets do that.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/sysfs.c
arch/powerpc/platforms/pseries/setup.c