# \[PATCH v2.1 01/10\] cpu: Introduce clear\_tasks\_mm\_cpumask() helper

- From: Oleg Nesterov \<oleg@redhat.com\>
- Date: 2012-03-26 17:13:47 
- List: linux-arm-kernel
- Page: https://ratatoskr.run/linux-arm-kernel/2012/03/3840975
- Thread: https://ratatoskr.run/linux-arm-kernel/2012/03/3840415/t.md

```text
On 03/26, Peter Zijlstra wrote:
>
> On Sun, 2012-03-25 at 19:42 +0200, Oleg Nesterov wrote:
> > __cpu_disable() is called by __stop_machine(), we know that nobody
> > can preempt us and other CPUs can do nothing.
>
> It would be very good to not rely on that though,

Yes, yes, perhaps I wasn't clear but I think the patches are fine.

> I would love to get
> rid of the stop_machine usage in cpu hotplug some day.

Interesting... Why? I mean, why do you dislike stop_machine() in
_cpu_down() ? Just curious.

Oleg.
```
