irq: Set CPU affinity right on thread creation
authorSankara Muthukrishnan <sankara.m@gmail.com>
Wed, 31 Oct 2012 20:41:23 +0000 (15:41 -0500)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 1 Nov 2012 11:11:31 +0000 (12:11 +0100)
commitf3de44edf376d18773febca6a37800c042bada7d
tree43e750bc026372f5a657afac98f50a9e74d21dfd
parent293a7a0a165c4f8327bbcf396cee9ec672727c98
irq: Set CPU affinity right on thread creation

As irq_thread_check_affinity is called ONLY inside the while loop in
the irq thread, the core affinity is set only when an interrupt
occurs. This patch sets the core affinity right after the irq thread
is created and before it waits for interrupts. In real-tiime targets
that do not typically change the core affinity of irqs during
run-time, this patch will save additional latency of an irq thread in
setting the core affinity during the first interrupt occurrence for
that irq.

Signed-off-by: Sankara S Muthukrishnan <sankara.m@ni.com>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Link: http://lkml.kernel.org/r/CAFQPvXeVZ858WFYimEU5uvLNxLDd6bJMmqWihFmbCf3ntokz0A@mail.gmail.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/irq/manage.c