From: Tejun Heo Date: Sat, 8 May 2010 14:20:53 +0000 (+0200) Subject: cpu_stop: add dummy implementation for UP X-Git-Tag: v2.6.35-rc1~521^2~11^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bbf1bb3eee86f2eef2baa14e600be454d09109ee;p=pandora-kernel.git cpu_stop: add dummy implementation for UP When !CONFIG_SMP, cpu_stop functions weren't defined at all which could lead to build failures if UP code uses cpu_stop facility. Add dummy cpu_stop implementation for UP. The waiting variants execute the work function directly with preempt disabled and stop_one_cpu_nowait() schedules a workqueue work. Makefile and ifdefs around stop_machine implementation are updated to accomodate CONFIG_SMP && !CONFIG_STOP_MACHINE case. Signed-off-by: Tejun Heo Reported-by: Ingo Molnar --- Reading git-diff-tree failed