Skip to content

Commit 4d92c8d

Browse files
committed
Merge branch 'stable' of git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile
Pull arch/tile bugfix from Chris Metcalf: "This fixes a bug that causes reboots after 208 days of uptime :-)" * 'stable' of git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile: tile: avoid using clocksource_cyc2ns with absolute cycle count
2 parents ded9b5d + e658a6f commit 4d92c8d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

arch/tile/kernel/time.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,8 @@ void do_timer_interrupt(struct pt_regs *regs, int fault_num)
218218
*/
219219
unsigned long long sched_clock(void)
220220
{
221-
return clocksource_cyc2ns(get_cycles(),
222-
sched_clock_mult, SCHED_CLOCK_SHIFT);
221+
return mult_frac(get_cycles(),
222+
sched_clock_mult, 1ULL << SCHED_CLOCK_SHIFT);
223223
}
224224

225225
int setup_profiling_timer(unsigned int multiplier)

0 commit comments

Comments
 (0)