diff options
Diffstat (limited to 'arch/tile/kernel/time.c')
-rw-r--r-- | arch/tile/kernel/time.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/tile/kernel/time.c b/arch/tile/kernel/time.c index 47500a324e32..b9ab25a889b5 100644 --- a/arch/tile/kernel/time.c +++ b/arch/tile/kernel/time.c | |||
@@ -23,6 +23,7 @@ | |||
23 | #include <linux/smp.h> | 23 | #include <linux/smp.h> |
24 | #include <linux/delay.h> | 24 | #include <linux/delay.h> |
25 | #include <asm/irq_regs.h> | 25 | #include <asm/irq_regs.h> |
26 | #include <asm/traps.h> | ||
26 | #include <hv/hypervisor.h> | 27 | #include <hv/hypervisor.h> |
27 | #include <arch/interrupts.h> | 28 | #include <arch/interrupts.h> |
28 | #include <arch/spr_def.h> | 29 | #include <arch/spr_def.h> |
@@ -45,13 +46,13 @@ static cycles_t cycles_per_sec __write_once; | |||
45 | */ | 46 | */ |
46 | #define TILE_MINSEC 5 | 47 | #define TILE_MINSEC 5 |
47 | 48 | ||
48 | cycles_t get_clock_rate() | 49 | cycles_t get_clock_rate(void) |
49 | { | 50 | { |
50 | return cycles_per_sec; | 51 | return cycles_per_sec; |
51 | } | 52 | } |
52 | 53 | ||
53 | #if CHIP_HAS_SPLIT_CYCLE() | 54 | #if CHIP_HAS_SPLIT_CYCLE() |
54 | cycles_t get_cycles() | 55 | cycles_t get_cycles(void) |
55 | { | 56 | { |
56 | unsigned int high = __insn_mfspr(SPR_CYCLE_HIGH); | 57 | unsigned int high = __insn_mfspr(SPR_CYCLE_HIGH); |
57 | unsigned int low = __insn_mfspr(SPR_CYCLE_LOW); | 58 | unsigned int low = __insn_mfspr(SPR_CYCLE_LOW); |
@@ -67,7 +68,7 @@ cycles_t get_cycles() | |||
67 | } | 68 | } |
68 | #endif | 69 | #endif |
69 | 70 | ||
70 | cycles_t clocksource_get_cycles(struct clocksource *cs) | 71 | static cycles_t clocksource_get_cycles(struct clocksource *cs) |
71 | { | 72 | { |
72 | return get_cycles(); | 73 | return get_cycles(); |
73 | } | 74 | } |