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 /drivers/clocksource/time-pistachio.c | |
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 'drivers/clocksource/time-pistachio.c')
-rw-r--r-- | drivers/clocksource/time-pistachio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/clocksource/time-pistachio.c b/drivers/clocksource/time-pistachio.c index a8e6c7df853d..3710e4d9dcba 100644 --- a/drivers/clocksource/time-pistachio.c +++ b/drivers/clocksource/time-pistachio.c | |||
@@ -67,7 +67,7 @@ static inline void gpt_writel(void __iomem *base, u32 value, u32 offset, | |||
67 | writel(value, base + 0x20 * gpt_id + offset); | 67 | writel(value, base + 0x20 * gpt_id + offset); |
68 | } | 68 | } |
69 | 69 | ||
70 | static cycle_t notrace | 70 | static u64 notrace |
71 | pistachio_clocksource_read_cycles(struct clocksource *cs) | 71 | pistachio_clocksource_read_cycles(struct clocksource *cs) |
72 | { | 72 | { |
73 | struct pistachio_clocksource *pcs = to_pistachio_clocksource(cs); | 73 | struct pistachio_clocksource *pcs = to_pistachio_clocksource(cs); |
@@ -84,7 +84,7 @@ pistachio_clocksource_read_cycles(struct clocksource *cs) | |||
84 | counter = gpt_readl(pcs->base, TIMER_CURRENT_VALUE, 0); | 84 | counter = gpt_readl(pcs->base, TIMER_CURRENT_VALUE, 0); |
85 | raw_spin_unlock_irqrestore(&pcs->lock, flags); | 85 | raw_spin_unlock_irqrestore(&pcs->lock, flags); |
86 | 86 | ||
87 | return (cycle_t)~counter; | 87 | return (u64)~counter; |
88 | } | 88 | } |
89 | 89 | ||
90 | static u64 notrace pistachio_read_sched_clock(void) | 90 | static u64 notrace pistachio_read_sched_clock(void) |