lkml.org 
[lkml]   [2008]   [Feb]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch 1/7] Immediate Values - Architecture Independent Code
On Wed, Feb 27, 2008 at 02:05:19PM -0500, Mathieu Desnoyers wrote:
> > +struct stop_machine_data {
> > + int (*fn)(void *);
> > + void *data;
> > + struct completion done;
> > + int run_all;
> > +} smdata;
> > +
>
> Why do we now have to declare this static ? Can we pass it as a pointer
> to stopmachine instead ?
>

Since the other cpus need to access 'fn', i made smdata a global.
stop_machine_run() is system-wide, so we only need one of these...

thanks,

-Jason



\
 
 \ /
  Last update: 2008-02-28 17:53    [from the cache]
©2003-2011 Jasper Spaans. Advertise on this site