lkml.org 
[lkml]   [2016]   [Jul]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch V2 43/67] leds/trigger/cpu: Convert to hotplug state machine
On Thu, 14 Jul 2016, Jacek Anaszewski wrote:
> On 07/14/2016 11:41 AM, Peter Zijlstra wrote:
> > On Thu, Jul 14, 2016 at 10:10:55AM +0200, Jacek Anaszewski wrote:
> > > On 07/14/2016 09:47 AM, Ingo Molnar wrote:
> > > >
> > > > * Jacek Anaszewski <j.anaszewski@samsung.com> wrote:
> > > >
> > > > > > @@ -133,7 +125,13 @@ static int __init ledtrig_cpu_init(void)
> > > > > > }
> > > > > >
> > > > > > register_syscore_ops(&ledtrig_cpu_syscore_ops);
> > > > > > - register_cpu_notifier(&ledtrig_cpu_nb);
> > > > > > +
> > > > > > + /*
> > > > > > + * FIXME: Why needs this to happen in the interrupt disabled
> > > > > > + * low level bringup phase of a cpu?
> > > > > > + */
> >
> > > Thanks for the explanation. I'm OK with that approach.
> >
> > Since we have your attention, could you perhaps attempt to answer the
> > question so we can fix the fixme?
> >
>
> This is the way how all led triggers are being registered.
>
> Once a trigger module is loaded it needs to be registered in
> the LED Trigger core.

That does not explain WHY this needs to happen in the low level bringup phase
of the CPU with interrupts disabled and can't be done from the normal ONLINE
callbacks in thread context.

Thanks,

tglx

\
 
 \ /
  Last update: 2016-07-14 13:41    [W:0.101 / U:4.120 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site