Home
last modified time | relevance | path

Searched hist:bbf1bb3eee86f2eef2baa14e600be454d09109ee (Results 1 – 1 of 1) sorted by relevance

/linux/include/linux/
H A Dstop_machine.hdiff bbf1bb3eee86f2eef2baa14e600be454d09109ee Sat May 08 16:20:53 CEST 2010 Tejun Heo <tj@kernel.org> 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 <tj@kernel.org>
Reported-by: Ingo Molnar <mingo@elte.hu>