projects/linux·commit 4d92c8d0

Merge branch 'stable' of git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile

4d92c8d0 · Linus Torvalds <[email protected]> · 2016-11-23 13:15:15 -08:00

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
Commit
4d92c8d036a7f1c9671eb672e7623925f5274737
Parents
ded9b5dd · e658a6f1

Merge commit. Changes below are compared with the first parent: ded9b5dd.

Changes

1 files changed · +2 −2

FileStatusAddDelContent
arch/tile/kernel/time.cmodified+2−2View file

arch/tile/kernel/time.c

View file
diff --git a/arch/tile/kernel/time.c b/arch/tile/kernel/time.c
index 178989e..ea960d6 100644
--- a/arch/tile/kernel/time.c
+++ b/arch/tile/kernel/time.c
@@ -218,8 +218,8 @@ void do_timer_interrupt(struct pt_regs *regs, int fault_num)
*/
unsigned long long sched_clock(void)
{
- return clocksource_cyc2ns(get_cycles(),
- sched_clock_mult, SCHED_CLOCK_SHIFT);
+ return mult_frac(get_cycles(),
+ sched_clock_mult, 1ULL << SCHED_CLOCK_SHIFT);
}
int setup_profiling_timer(unsigned int multiplier)