premmpt_disable on all cpus

Submitted by Anonymous
on November 3, 2009 - 2:35am

my requirement is as follows.

I want disable preemption on all cpus. and then call a function

with on_each_cpu(preempt_disable, NULL, 1, 1); call I dont think it will work.

is there a way to achieve it ?