[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4372800.FdTygmcuyo@wuerfel>
Date: Tue, 10 Nov 2015 13:29:35 +0100
From: Arnd Bergmann <arnd@...db.de>
To: linux-arm-kernel@...ts.infradead.org
Cc: Stefano Stabellini <stefano.stabellini@...citrix.com>,
xen-devel@...ts.xensource.com, Ian.Campbell@...rix.com,
peterz@...radead.org, linux-kernel@...r.kernel.org,
john.stultz@...aro.org, tglx@...utronix.de, mingo@...nel.org
Subject: Re: [PATCH v2 1/7] timekeeping: introduce __current_kernel_time64
On Tuesday 10 November 2015 11:57:49 Stefano Stabellini wrote:
> __current_kernel_time64 returns a struct timespec64, without taking the
> xtime lock. Mirrors __current_kernel_time/current_kernel_time.
>
Actually it doesn't mirror __current_kernel_time/current_kernel_time
> diff --git a/include/linux/timekeeping.h b/include/linux/timekeeping.h
> index ec89d84..b5802bf 100644
> --- a/include/linux/timekeeping.h
> +++ b/include/linux/timekeeping.h
> @@ -19,7 +19,8 @@ extern int do_sys_settimeofday(const struct timespec *tv,
> */
> unsigned long get_seconds(void);
> struct timespec64 current_kernel_time64(void);
> -/* does not take xtime_lock */
> +/* do not take xtime_lock */
> +struct timespec64 __current_kernel_time64(void);
> struct timespec __current_kernel_time(void);
Please change __current_kernel_time into a static inline function
while you are introducing the new one, to match the patch description ;-)
Arnd
--
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