lkml.org 
[lkml]   [2008]   [Feb]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch 1/2] add ALL_CPUS option to stop_machine_run()

* Max Krasnyanskiy <maxk@qualcomm.com> wrote:

>> -allow stop_mahcine_run() to call a function on all cpus. Calling
>> stop_machine_run() with a 'ALL_CPUS' invokes this new behavior.
>> stop_machine_run() proceeds as normal until the calling cpu has
>> invoked 'fn'. Then, we tell all the other cpus to call 'fn'.
>
> Jason, we're actually trying to reduce the usage of the stop_machine
> in general. [...]

please talk in your own name. Stop-machine is a very elegant tool that
simplifies a lot of hard things in the kernel and is reasonably fast as
well. We've just recently added two new usages of it and more are
planned.

_you_ might be the one who wants to 'reduce the usage of stop_machine' -
but that means it is _you_ who first has to convert a number of very
difficult pieces of code to "something else".

Ingo


\
 
 \ /
  Last update: 2008-02-29 10:05    [W:0.106 / U:0.096 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site