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    [W:0.021 / U:0.804 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site