aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/microblaze/kernel/timer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/microblaze/kernel/timer.c b/arch/microblaze/kernel/timer.c
index e5550ce4e0eb..af74b1113aab 100644
--- a/arch/microblaze/kernel/timer.c
+++ b/arch/microblaze/kernel/timer.c
@@ -308,7 +308,8 @@ unsigned long long notrace sched_clock(void)
308{ 308{
309 if (timer_initialized) { 309 if (timer_initialized) {
310 struct clocksource *cs = &clocksource_microblaze; 310 struct clocksource *cs = &clocksource_microblaze;
311 cycle_t cyc = cnt32_to_63(cs->read(NULL)); 311
312 cycle_t cyc = cnt32_to_63(cs->read(NULL)) & LLONG_MAX;
312 return clocksource_cyc2ns(cyc, cs->mult, cs->shift); 313 return clocksource_cyc2ns(cyc, cs->mult, cs->shift);
313 } 314 }
314 return 0; 315 return 0;