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>
This commit is contained in:
@@ -29,9 +29,9 @@
|
||||
*/
|
||||
struct tk_read_base {
|
||||
struct clocksource *clock;
|
||||
cycle_t (*read)(struct clocksource *cs);
|
||||
cycle_t mask;
|
||||
cycle_t cycle_last;
|
||||
u64 (*read)(struct clocksource *cs);
|
||||
u64 mask;
|
||||
u64 cycle_last;
|
||||
u32 mult;
|
||||
u32 shift;
|
||||
u64 xtime_nsec;
|
||||
@@ -97,7 +97,7 @@ struct timekeeper {
|
||||
struct timespec64 raw_time;
|
||||
|
||||
/* The following members are for timekeeping internal use */
|
||||
cycle_t cycle_interval;
|
||||
u64 cycle_interval;
|
||||
u64 xtime_interval;
|
||||
s64 xtime_remainder;
|
||||
u32 raw_interval;
|
||||
@@ -136,7 +136,7 @@ extern void update_vsyscall_tz(void);
|
||||
|
||||
extern void update_vsyscall_old(struct timespec *ts, struct timespec *wtm,
|
||||
struct clocksource *c, u32 mult,
|
||||
cycle_t cycle_last);
|
||||
u64 cycle_last);
|
||||
extern void update_vsyscall_tz(void);
|
||||
|
||||
#else
|
||||
|
Reference in New Issue
Block a user