kthread: Implement park/unpark facility
authorThomas Gleixner <[email protected]>
Mon, 16 Jul 2012 10:42:36 +0000 (10:42 +0000)
committerThomas Gleixner <[email protected]>
Mon, 13 Aug 2012 15:01:06 +0000 (17:01 +0200)
commit2a1d446019f9a5983ec5a335b95e8593fdb6fa2e
treed4867984d3655cc2e0805534601b94c7ab92bcd7
parent5d01bbd111d6ff9ea9d9847774f66dff39633776
kthread: Implement park/unpark facility

To avoid the full teardown/setup of per cpu kthreads in the case of
cpu hot(un)plug, provide a facility which allows to put the kthread
into a park position and unpark it when the cpu comes online again.

Signed-off-by: Thomas Gleixner <[email protected]>
Reviewed-by: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Reviewed-by: Srivatsa S. Bhat <[email protected]>
Cc: Rusty Russell <[email protected]>
Reviewed-by: Paul E. McKenney <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected]>
include/linux/kthread.h
kernel/kthread.c