From: Steven Rostedt Date: Thu, 15 Nov 2012 16:34:21 +0000 (-0500) Subject: irq_work: Flush work on CPU_DYING X-Git-Tag: v3.9-rc1~174^2~1^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c0e980a4bd7fc5c9b748f2f0209d2a48c0fdf0ab;p=pandora-kernel.git irq_work: Flush work on CPU_DYING In order not to offline a CPU with pending irq works, flush the queue from CPU_DYING. The notifier is called by stop_machine on the CPU that is going down. The code will not be called from irq context (so things like get_irq_regs() wont work) but I'm not sure what the requirements are for irq_work in that regard (Peter?). But irqs are disabled and the CPU is about to go offline. Might as well flush the work. Signed-off-by: Steven Rostedt Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Andrew Morton Cc: Paul Gortmaker Signed-off-by: Frederic Weisbecker --- Reading git-diff-tree failed