lkml.org 
[lkml]   [2012]   [Apr]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: CPU Hotplug rework
From
Date
On Tue, 2012-04-10 at 17:28 -0700, Paul E. McKenney wrote:

> > Just to throw out the stupid silly approach.
> >
> > What about creating a "__register_cpu_notifier()" that just does:
> >
> > int __ref __register_cpu_notifier(struct notifier_block *nb)
> > {
> > return raw_notifier_chain_register(&cpu_chain, nb);
> > }
> >
> > Also making cpu_maps_update_begin/done() global (and probably rename
> > them).

I just noticed that the cpu_maps_update_begin/done() are already global.

> >
> > and then in the above code do:
> >
> > cpu_maps_update_begin();
> > __register_cpu_notifier(nb);
> > do_setup();
> > cpu_maps_update_done();
> >
> >
> > Just saying,
>
> That does have some attractive properties, now that you mention it. ;-)

Which property? Stupid or Silly ;-)


-- Steve




\
 
 \ /
  Last update: 2012-04-11 02:39    [W:0.053 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site