summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2010-05-16 20:02:39 +0000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2010-05-21 17:31:12 +1000
commitb878dc00595440586874952dd85ce9b803360b87 (patch)
tree172832984c2ca6661cb48899c40b5734cdfa82a3 /lib
parentdd04c63c96425af9b6741f3abf0ad25d6b1c0e8d (diff)
downloadblackbird-op-linux-b878dc00595440586874952dd85ce9b803360b87.tar.gz
blackbird-op-linux-b878dc00595440586874952dd85ce9b803360b87.zip
powerpc: Use smt_snooze_delay=-1 to always busy loop
Right now if we want to busy loop and not give up any time to the hypervisor we put a very large value into smt_snooze_delay. This is sometimes useful when running a single partition and you want to avoid any latencies due to the hypervisor or CPU power state transitions. While this works, it's a bit ugly - how big a number is enough now we have NO_HZ and can be idle for a very long time. The patch below makes smt_snooze_delay signed, and a negative value means loop forever: echo -1 > /sys/devices/system/cpu/cpu0/smt_snooze_delay This change shouldn't affect the existing userspace tools (eg ppc64_cpu), but I'm cc-ing Nathan just to be sure. Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud