nohz: Introduce arch_needs_cpu
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 29 Sep 2009 12:25:16 +0000 (14:25 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 5 Nov 2009 06:53:53 +0000 (07:53 +0100)
commit3c5d92a0cfb5103c0d5ab74d4ae6373d3af38148
treec8b50351568601428b6f9396ebfdd65e486b3097
parenteed3b9cf3fe3fcc7a50238dfcab63a63914e8f42
nohz: Introduce arch_needs_cpu

Allow the architecture to request a normal jiffy tick when the system
goes idle and tick_nohz_stop_sched_tick is called . On s390 the hook is
used to prevent the system going fully idle if there has been an
interrupt other than a clock comparator interrupt since the last wakeup.

On s390 the HiperSockets response time for 1 connection ping-pong goes
down from 42 to 34 microseconds. The CPU cost decreases by 27%.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
LKML-Reference: <20090929122533.402715150@de.ibm.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/s390/include/asm/cputime.h
arch/s390/kernel/s390_ext.c
arch/s390/kernel/vtime.c
drivers/s390/cio/cio.c
include/linux/tick.h
kernel/time/tick-sched.c