diff options
Diffstat (limited to 'arch/mips/cavium-octeon/csrc-octeon.c')
-rw-r--r-- | arch/mips/cavium-octeon/csrc-octeon.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/mips/cavium-octeon/csrc-octeon.c b/arch/mips/cavium-octeon/csrc-octeon.c index 96110f217dcd..96df821fbd81 100644 --- a/arch/mips/cavium-octeon/csrc-octeon.c +++ b/arch/mips/cavium-octeon/csrc-octeon.c | |||
@@ -50,6 +50,13 @@ static struct clocksource clocksource_mips = { | |||
50 | .flags = CLOCK_SOURCE_IS_CONTINUOUS, | 50 | .flags = CLOCK_SOURCE_IS_CONTINUOUS, |
51 | }; | 51 | }; |
52 | 52 | ||
53 | unsigned long long notrace sched_clock(void) | ||
54 | { | ||
55 | return clocksource_cyc2ns(read_c0_cvmcount(), | ||
56 | clocksource_mips.mult, | ||
57 | clocksource_mips.shift); | ||
58 | } | ||
59 | |||
53 | void __init plat_time_init(void) | 60 | void __init plat_time_init(void) |
54 | { | 61 | { |
55 | clocksource_mips.rating = 300; | 62 | clocksource_mips.rating = 300; |