On Tue, 28 Mar 2017, Liang, Kan wrote: > Thanks. It simplify the code very much. > I think we still need to protect the smp_call_function in the driver, right?
Yes. > Would be the following code enough? > > get_online_cpus(); > preempt_disable(); Only get_online_cpus(). smp_call_function() disables preemption internaly. Thanks, tglx