From: Jeremy Fitzhardinge Date: Fri, 30 Sep 2011 16:10:54 +0000 (-0700) Subject: stop_machine: make stop_machine safe and efficient to call early X-Git-Tag: v3.2-rc1~18^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=189c3fd68c7016e37c1ffd7a00009e2c944a9d06;p=pandora-kernel.git stop_machine: make stop_machine safe and efficient to call early Make stop_machine() safe to call early in boot, before stop_machine() has been set up, by simply calling the callback function directly if there's only one CPU online. [ Fixes from AKPM: - add comment - local_irq_flags, not save_flags - also call hard_irq_disable() for systems which need it Tejun suggested using an explicit flag rather than just looking at the online cpu count. ] Signed-off-by: Jeremy Fitzhardinge Acked-by: Tejun Heo Acked-by: Peter Zijlstra Cc: Rusty Russell Cc: Peter Zijlstra Cc: Andrew Morton Cc: H. Peter Anvin Cc: Ingo Molnar Cc: Steven Rostedt --- Reading git-diff-tree failed