aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/csrc-r4k.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/kernel/csrc-r4k.c')
-rw-r--r--arch/mips/kernel/csrc-r4k.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/mips/kernel/csrc-r4k.c b/arch/mips/kernel/csrc-r4k.c
index 74c5c62365a8..0e2b5cd81f67 100644
--- a/arch/mips/kernel/csrc-r4k.c
+++ b/arch/mips/kernel/csrc-r4k.c
@@ -5,6 +5,10 @@
5 * 5 *
6 * Copyright (C) 2007 by Ralf Baechle 6 * Copyright (C) 2007 by Ralf Baechle
7 */ 7 */
8#include <linux/clocksource.h>
9#include <linux/init.h>
10
11#include <asm/time.h>
8 12
9static cycle_t c0_hpt_read(void) 13static cycle_t c0_hpt_read(void)
10{ 14{
@@ -18,7 +22,7 @@ static struct clocksource clocksource_mips = {
18 .flags = CLOCK_SOURCE_IS_CONTINUOUS, 22 .flags = CLOCK_SOURCE_IS_CONTINUOUS,
19}; 23};
20 24
21static void __init init_mips_clocksource(void) 25void __init init_mips_clocksource(void)
22{ 26{
23 /* Calclate a somewhat reasonable rating value */ 27 /* Calclate a somewhat reasonable rating value */
24 clocksource_mips.rating = 200 + mips_hpt_frequency / 10000000; 28 clocksource_mips.rating = 200 + mips_hpt_frequency / 10000000;