Skip to content
Commit f3de44ed authored by Sankara Muthukrishnan's avatar Sankara Muthukrishnan Committed by Thomas Gleixner
Browse files

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: default avatarSankara S Muthukrishnan <sankara.m@ni.com>
Acked-by: default avatarSteven Rostedt <rostedt@goodmis.org>
Link: http://lkml.kernel.org/r/CAFQPvXeVZ858WFYimEU5uvLNxLDd6bJMmqWihFmbCf3ntokz0A@mail.gmail.com


Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 293a7a0a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment