]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
kthread: Implement park/unpark facility
authorThomas Gleixner <tglx@linutronix.de>
Mon, 16 Jul 2012 10:42:36 +0000 (10:42 +0000)
committerThomas Gleixner <tglx@linutronix.de>
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 <tglx@linutronix.de>
Reviewed-by: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Reviewed-by: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Reviewed-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Link: http://lkml.kernel.org/r/20120716103948.236618824@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/linux/kthread.h
kernel/kthread.c