diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2016-12-21 14:32:01 -0500 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2016-12-25 05:04:12 -0500 |
commit | a5a1d1c2914b5316924c7893eb683a5420ebd3be (patch) | |
tree | 9078b8a179031e7e8b320e1c69f182cc285e7b5d /include/linux/timekeeping.h | |
parent | 7c0f6ba682b9c7632072ffbedf8d328c8f3c42ba (diff) |
clocksource: Use a plain u64 instead of cycle_t
There is no point in having an extra type for extra confusion. u64 is
unambiguous.
Conversion was done with the following coccinelle script:
@rem@
@@
-typedef u64 cycle_t;
@fix@
typedef cycle_t;
@@
-cycle_t
+u64
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: John Stultz <john.stultz@linaro.org>
Diffstat (limited to 'include/linux/timekeeping.h')
-rw-r--r-- | include/linux/timekeeping.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/timekeeping.h b/include/linux/timekeeping.h index 361f8bf1429d..d2e804e15c3e 100644 --- a/include/linux/timekeeping.h +++ b/include/linux/timekeeping.h | |||
@@ -293,7 +293,7 @@ extern void ktime_get_raw_and_real_ts64(struct timespec64 *ts_raw, | |||
293 | * @cs_was_changed_seq: The sequence number of clocksource change events | 293 | * @cs_was_changed_seq: The sequence number of clocksource change events |
294 | */ | 294 | */ |
295 | struct system_time_snapshot { | 295 | struct system_time_snapshot { |
296 | cycle_t cycles; | 296 | u64 cycles; |
297 | ktime_t real; | 297 | ktime_t real; |
298 | ktime_t raw; | 298 | ktime_t raw; |
299 | unsigned int clock_was_set_seq; | 299 | unsigned int clock_was_set_seq; |
@@ -321,7 +321,7 @@ struct system_device_crosststamp { | |||
321 | * timekeeping code to verify comparibility of two cycle values | 321 | * timekeeping code to verify comparibility of two cycle values |
322 | */ | 322 | */ |
323 | struct system_counterval_t { | 323 | struct system_counterval_t { |
324 | cycle_t cycles; | 324 | u64 cycles; |
325 | struct clocksource *cs; | 325 | struct clocksource *cs; |
326 | }; | 326 | }; |
327 | 327 | ||