aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/apb_timer.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2016-12-21 14:32:01 -0500
committerThomas Gleixner <tglx@linutronix.de>2016-12-25 05:04:12 -0500
commita5a1d1c2914b5316924c7893eb683a5420ebd3be (patch)
tree9078b8a179031e7e8b320e1c69f182cc285e7b5d /arch/x86/kernel/apb_timer.c
parent7c0f6ba682b9c7632072ffbedf8d328c8f3c42ba (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 'arch/x86/kernel/apb_timer.c')
-rw-r--r--arch/x86/kernel/apb_timer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/apb_timer.c b/arch/x86/kernel/apb_timer.c
index 456316f6c868..092ea664d2c6 100644
--- a/arch/x86/kernel/apb_timer.c
+++ b/arch/x86/kernel/apb_timer.c
@@ -247,7 +247,7 @@ void apbt_setup_secondary_clock(void) {}
247static int apbt_clocksource_register(void) 247static int apbt_clocksource_register(void)
248{ 248{
249 u64 start, now; 249 u64 start, now;
250 cycle_t t1; 250 u64 t1;
251 251
252 /* Start the counter, use timer 2 as source, timer 0/1 for event */ 252 /* Start the counter, use timer 2 as source, timer 0/1 for event */
253 dw_apb_clocksource_start(clocksource_apbt); 253 dw_apb_clocksource_start(clocksource_apbt);
@@ -355,7 +355,7 @@ unsigned long apbt_quick_calibrate(void)
355{ 355{
356 int i, scale; 356 int i, scale;
357 u64 old, new; 357 u64 old, new;
358 cycle_t t1, t2; 358 u64 t1, t2;
359 unsigned long khz = 0; 359 unsigned long khz = 0;
360 u32 loop, shift; 360 u32 loop, shift;
361 361