Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754565AbbDTHOY (ORCPT ); Mon, 20 Apr 2015 03:14:24 -0400 Received: from mail-wg0-f52.google.com ([74.125.82.52]:34754 "EHLO mail-wg0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754120AbbDTHOW (ORCPT ); Mon, 20 Apr 2015 03:14:22 -0400 Date: Mon, 20 Apr 2015 08:14:17 +0100 From: Peter Griffin To: Paul Bolle Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, srinivas.kandagatla@gmail.com, maxime.coquelin@st.com, patrice.chotard@st.com, daniel.lezcano@linaro.org, tglx@linutronix.de, lee.jones@linaro.org, devicetree@vger.kernel.org, Ajit Pal Singh Subject: Re: [PATCH 1/5] clocksource: st_lpc: Add LPC timer as a clocksource. Message-ID: <20150420071417.GA17802@griffinp-ThinkPad-X1-Carbon-2nd> References: <1429267823-8879-1-git-send-email-peter.griffin@linaro.org> <1429267823-8879-2-git-send-email-peter.griffin@linaro.org> <1429305405.16771.114.camel@x220> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1429305405.16771.114.camel@x220> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1738 Lines: 66 Hi Paul, On Fri, 17 Apr 2015, Paul Bolle wrote: > On Fri, 2015-04-17 at 11:50 +0100, Peter Griffin wrote: > > --- a/drivers/clocksource/Kconfig > > +++ b/drivers/clocksource/Kconfig > > > +config CLKSRC_ST_LPC_CLOCK > > + bool > > + depends on ARCH_STI > > + select CLKSRC_OF if OF > > + help > > + Enable this option to use the Low Power controller timer > > + as clock source. > > + > > +config CLKSRC_ST_LPC_TIMER_SCHED_CLOCK > > + bool > > + depends on ST_LPC_CLOCK > > It looks like you meant > depends on CLKSRC_ST_LPC_CLOCK Yes your correct, will fix in v2. I did a last minute change to append CLKSRC_, and seem to have messed it up. > > --- /dev/null > > +++ b/drivers/clocksource/st_lpc.c > > > +#ifdef CONFIG_CLKSRC_LPC_TIMER_SCHED_CLOCK > > #ifdef CONFIG_CLKSRC_ST_LPC_TIMER_SCHED_CLOCK here? Yes, will fix in v2 > > > +static u64 notrace st_lpc_sched_clock_read(void) > > +{ > > + return st_lpc_counter_read(); > > +} > > +#endif > > > +#ifdef CONFIG_CLKSRC_LPC_TIMER_SCHED_CLOCK > > Again, #ifdef CONFIG_CLKSRC_ST_LPC_TIMER_SCHED_CLOCK here? Yes, will fix in v2 > > > + sched_clock_register(st_lpc_sched_clock_read, 64, rate); > > +#endif > > Assuming the above suggestions are correct: checkkconfigsymbols.py, as > shipped in linux-next, helps detect stuff like this. See > scripts/checkkconfigsymbols.py --help. Thanks for the pointer to the script, I'd not heard of that before, so will take a look. Thanks for reviewing, regards, Peter. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/