• T
    cpu_stop: add dummy implementation for UP · bbf1bb3e
    Tejun Heo 提交于
    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: NTejun Heo <tj@kernel.org>
    Reported-by: NIngo Molnar <mingo@elte.hu>
    bbf1bb3e
stop_machine.h 4.0 KB