[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.11.1602241150120.3670@nanos>
Date: Wed, 24 Feb 2016 11:51:12 +0100 (CET)
From: Thomas Gleixner <tglx@...utronix.de>
To: "Christopher S. Hall" <christopher.s.hall@...el.com>
cc: richardcochran@...il.com, mingo@...hat.com, john.stultz@...aro.org,
hpa@...or.com, jeffrey.t.kirsher@...el.com, x86@...nel.org,
linux-kernel@...r.kernel.org, intel-wired-lan@...ts.osuosl.org,
netdev@...r.kernel.org, kevin.b.stanton@...el.com,
kevin.j.clarke@...el.com
Subject: Re: [PATCH v8 2/8] time: Add timekeeping snapshot code capturing
system time and counter
On Mon, 22 Feb 2016, Christopher S. Hall wrote:
> In the current timekeeping code there isn't any interface to
> atomically capture the current relationship between the system counter
> and system time. ktime_get_snapshot() returns this triple (counter,
> monotonic raw, realtime) in the system_time_snapshot struct.
> +/**
> + * ktime_get_snapshot - snapshots the realtime/monotonic raw clocks with counter
> + * @systime_snapshot: pointer to struct receiving the system time snapshot
> + */
> +void ktime_get_snapshot(struct system_time_snapshot *systime_snapshot)
> +{
> + struct timekeeper *tk = &tk_core.timekeeper;
> + unsigned long seq;
> + ktime_t base_raw;
> + ktime_t base_real;
> + s64 nsec_raw;
> + s64 nsec_real;
I'd prefer to have the variables of the same type in a single line. Other than
that:
Reviewed-by: Thomas Gleixner <tglx@...utronix.de>
Powered by blists - more mailing lists