From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751254AbcGNLfi (ORCPT ); Thu, 14 Jul 2016 07:35:38 -0400 Received: from www.linutronix.de ([62.245.132.108]:43832 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750897AbcGNLfg (ORCPT ); Thu, 14 Jul 2016 07:35:36 -0400 Date: Thu, 14 Jul 2016 13:33:06 +0200 (CEST) From: Thomas Gleixner To: Jacek Anaszewski cc: Peter Zijlstra , Ingo Molnar , Anna-Maria Gleixner , LKML , rt@linutronix.de, Richard Cochran , Sebastian Andrzej Siewior , Linus Torvalds , Linus Walleij , Paul Gortmaker , Richard Purdie , linux-leds@vger.kernel.org Subject: Re: [patch V2 43/67] leds/trigger/cpu: Convert to hotplug state machine In-Reply-To: <57877640.4020004@samsung.com> Message-ID: References: <20160713153219.128052238@linutronix.de> <20160713153336.465496902@linutronix.de> <57873CFF.1010803@samsung.com> <20160714074713.GA17287@gmail.com> <5787490F.5000105@samsung.com> <20160714094154.GY30154@twins.programming.kicks-ass.net> <57877640.4020004@samsung.com> User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001,URIBL_BLOCKED=0.001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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