diff options
Diffstat (limited to 'arch/tile/kernel/time.c')
-rw-r--r-- | arch/tile/kernel/time.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/tile/kernel/time.c b/arch/tile/kernel/time.c index f6f50f2a5e37..5ac397ec6986 100644 --- a/arch/tile/kernel/time.c +++ b/arch/tile/kernel/time.c | |||
@@ -230,6 +230,10 @@ int setup_profiling_timer(unsigned int multiplier) | |||
230 | */ | 230 | */ |
231 | cycles_t ns2cycles(unsigned long nsecs) | 231 | cycles_t ns2cycles(unsigned long nsecs) |
232 | { | 232 | { |
233 | struct clock_event_device *dev = &__get_cpu_var(tile_timer); | 233 | /* |
234 | * We do not have to disable preemption here as each core has the same | ||
235 | * clock frequency. | ||
236 | */ | ||
237 | struct clock_event_device *dev = &__raw_get_cpu_var(tile_timer); | ||
234 | return ((u64)nsecs * dev->mult) >> dev->shift; | 238 | return ((u64)nsecs * dev->mult) >> dev->shift; |
235 | } | 239 | } |