aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/timex.h4
-rw-r--r--kernel/timer.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/include/linux/timex.h b/include/linux/timex.h
index db501dc23c29..9a24e500c311 100644
--- a/include/linux/timex.h
+++ b/include/linux/timex.h
@@ -255,10 +255,10 @@ struct time_interpolator {
255 u8 jitter; /* if set compensate for fluctuations */ 255 u8 jitter; /* if set compensate for fluctuations */
256 u32 nsec_per_cyc; /* set by register_time_interpolator() */ 256 u32 nsec_per_cyc; /* set by register_time_interpolator() */
257 void *addr; /* address of counter or function */ 257 void *addr; /* address of counter or function */
258 u64 mask; /* mask the valid bits of the counter */ 258 cycles_t mask; /* mask the valid bits of the counter */
259 unsigned long offset; /* nsec offset at last update of interpolator */ 259 unsigned long offset; /* nsec offset at last update of interpolator */
260 u64 last_counter; /* counter value in units of the counter at last update */ 260 u64 last_counter; /* counter value in units of the counter at last update */
261 u64 last_cycle; /* Last timer value if TIME_SOURCE_JITTER is set */ 261 cycles_t last_cycle; /* Last timer value if TIME_SOURCE_JITTER is set */
262 u64 frequency; /* frequency in counts/second */ 262 u64 frequency; /* frequency in counts/second */
263 long drift; /* drift in parts-per-million (or -1) */ 263 long drift; /* drift in parts-per-million (or -1) */
264 unsigned long skips; /* skips forward */ 264 unsigned long skips; /* skips forward */
diff --git a/kernel/timer.c b/kernel/timer.c
index c2a8ccfc2882..d38801a95866 100644
--- a/kernel/timer.c
+++ b/kernel/timer.c
@@ -1624,7 +1624,7 @@ struct time_interpolator *time_interpolator __read_mostly;
1624static struct time_interpolator *time_interpolator_list __read_mostly; 1624static struct time_interpolator *time_interpolator_list __read_mostly;
1625static DEFINE_SPINLOCK(time_interpolator_lock); 1625static DEFINE_SPINLOCK(time_interpolator_lock);
1626 1626
1627static inline u64 time_interpolator_get_cycles(unsigned int src) 1627static inline cycles_t time_interpolator_get_cycles(unsigned int src)
1628{ 1628{
1629 unsigned long (*x)(void); 1629 unsigned long (*x)(void);
1630 1630
@@ -1650,8 +1650,8 @@ static inline u64 time_interpolator_get_counter(int writelock)
1650 1650
1651 if (time_interpolator->jitter) 1651 if (time_interpolator->jitter)
1652 { 1652 {
1653 u64 lcycle; 1653 cycles_t lcycle;
1654 u64 now; 1654 cycles_t now;
1655 1655
1656 do { 1656 do {
1657 lcycle = time_interpolator->last_cycle; 1657 lcycle = time_interpolator->last_cycle;