diff options
| author | Peter Zijlstra <peterz@infradead.org> | 2015-03-19 04:28:44 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2015-03-27 04:45:07 -0400 |
| commit | 4a4ad80d32cea69ee93bd4589f24dc478804cd80 (patch) | |
| tree | 1c559540371e84bfea7d17181e22a49090f8928a /include | |
| parent | 876e78818def2983be55878b21f7152fbaebbd36 (diff) | |
time: Add timerkeeper::tkr_raw
Introduce tkr_raw and make use of it.
base_raw -> tkr_raw.base
clock->{mult,shift} -> tkr_raw.{mult.shift}
Kill timekeeping_get_ns_raw() in favour of
timekeeping_get_ns(&tkr_raw), this removes all mono_raw special
casing.
Duplicate the updates to tkr_mono.cycle_last into tkr_raw.cycle_last,
both need the same value.
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: John Stultz <john.stultz@linaro.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20150319093400.422589590@infradead.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/timekeeper_internal.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/timekeeper_internal.h b/include/linux/timekeeper_internal.h index 73df17f1535f..fb86963859c7 100644 --- a/include/linux/timekeeper_internal.h +++ b/include/linux/timekeeper_internal.h | |||
| @@ -41,6 +41,7 @@ struct tk_read_base { | |||
| 41 | /** | 41 | /** |
| 42 | * struct timekeeper - Structure holding internal timekeeping values. | 42 | * struct timekeeper - Structure holding internal timekeeping values. |
| 43 | * @tkr_mono: The readout base structure for CLOCK_MONOTONIC | 43 | * @tkr_mono: The readout base structure for CLOCK_MONOTONIC |
| 44 | * @tkr_raw: The readout base structure for CLOCK_MONOTONIC_RAW | ||
| 44 | * @xtime_sec: Current CLOCK_REALTIME time in seconds | 45 | * @xtime_sec: Current CLOCK_REALTIME time in seconds |
| 45 | * @ktime_sec: Current CLOCK_MONOTONIC time in seconds | 46 | * @ktime_sec: Current CLOCK_MONOTONIC time in seconds |
| 46 | * @wall_to_monotonic: CLOCK_REALTIME to CLOCK_MONOTONIC offset | 47 | * @wall_to_monotonic: CLOCK_REALTIME to CLOCK_MONOTONIC offset |
| @@ -48,7 +49,6 @@ struct tk_read_base { | |||
| 48 | * @offs_boot: Offset clock monotonic -> clock boottime | 49 | * @offs_boot: Offset clock monotonic -> clock boottime |
| 49 | * @offs_tai: Offset clock monotonic -> clock tai | 50 | * @offs_tai: Offset clock monotonic -> clock tai |
| 50 | * @tai_offset: The current UTC to TAI offset in seconds | 51 | * @tai_offset: The current UTC to TAI offset in seconds |
| 51 | * @base_raw: Monotonic raw base time in ktime_t format | ||
| 52 | * @raw_time: Monotonic raw base time in timespec64 format | 52 | * @raw_time: Monotonic raw base time in timespec64 format |
| 53 | * @cycle_interval: Number of clock cycles in one NTP interval | 53 | * @cycle_interval: Number of clock cycles in one NTP interval |
| 54 | * @xtime_interval: Number of clock shifted nano seconds in one NTP | 54 | * @xtime_interval: Number of clock shifted nano seconds in one NTP |
| @@ -77,6 +77,7 @@ struct tk_read_base { | |||
| 77 | */ | 77 | */ |
| 78 | struct timekeeper { | 78 | struct timekeeper { |
| 79 | struct tk_read_base tkr_mono; | 79 | struct tk_read_base tkr_mono; |
| 80 | struct tk_read_base tkr_raw; | ||
| 80 | u64 xtime_sec; | 81 | u64 xtime_sec; |
| 81 | unsigned long ktime_sec; | 82 | unsigned long ktime_sec; |
| 82 | struct timespec64 wall_to_monotonic; | 83 | struct timespec64 wall_to_monotonic; |
| @@ -84,7 +85,6 @@ struct timekeeper { | |||
| 84 | ktime_t offs_boot; | 85 | ktime_t offs_boot; |
| 85 | ktime_t offs_tai; | 86 | ktime_t offs_tai; |
| 86 | s32 tai_offset; | 87 | s32 tai_offset; |
| 87 | ktime_t base_raw; | ||
| 88 | struct timespec64 raw_time; | 88 | struct timespec64 raw_time; |
| 89 | 89 | ||
| 90 | /* The following members are for timekeeping internal use */ | 90 | /* The following members are for timekeeping internal use */ |
