[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CALAqxLUYbu3gbzZTizCx3nHSPSSnjHE_C3O7JrW-MHcnxD+F9Q@mail.gmail.com>
Date: Wed, 25 Feb 2015 21:08:13 -0800
From: John Stultz <john.stultz@...aro.org>
To: Xunlei Pang <xlpang@....com>
Cc: lkml <linux-kernel@...r.kernel.org>,
"rtc-linux@...glegroups.com" <rtc-linux@...glegroups.com>,
Thomas Gleixner <tglx@...utronix.de>,
Alessandro Zummo <a.zummo@...ertech.it>,
Arnd Bergmann <arnd.bergmann@...aro.org>,
Peter Zijlstra <peterz@...radead.org>,
Xunlei Pang <pang.xunlei@...aro.org>
Subject: Re: [PATCH v4 1/4] time: Add needed macros for timekeeping_inject_sleeptime64()
On Sun, Feb 15, 2015 at 5:09 AM, Xunlei Pang <xlpang@....com> wrote:
> From: Xunlei Pang <pang.xunlei@...aro.org>
>
> timekeeping_inject_sleeptime64() is only used by RTC suspend/resume,
> so embrace it in RTC related macros.
>
> Signed-off-by: Xunlei Pang <pang.xunlei@...aro.org>
> ---
> kernel/time/timekeeping.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c
> index b124af2..d78a528 100644
> --- a/kernel/time/timekeeping.c
> +++ b/kernel/time/timekeeping.c
> @@ -1125,6 +1125,9 @@ static void __timekeeping_inject_sleeptime(struct timekeeper *tk,
> tk_debug_account_sleep_time(delta);
> }
>
> +#if defined(CONFIG_RTC_CLASS) && \
> + defined(CONFIG_PM_SLEEP) && \
> + defined(CONFIG_RTC_HCTOSYS_DEVICE)
So RTC_HCTOSYS_DEVICE implies RTC_CLASS, so that could be simplified a bit...
thanks
-john
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists