Re: [PATCH] tile: avoid overflow in ns2cycles

2014-03-06 Thread Chris Metcalf
On 3/4/2014 3:20 AM, Henrik Austad wrote: > In commit 4cecf6d401a ("sched, x86: Avoid unnecessary overflow in > sched_clock") and in recent patch "clocksource: avoid unnecessary > overflow in cyclecounter_cyc2ns()" https://lkml.org/lkml/2014/3/4/17, > the mult-shift approach is replaced by 2 steps

[PATCH] tile: avoid overflow in ns2cycles

2014-03-04 Thread Henrik Austad
In commit 4cecf6d401a ("sched, x86: Avoid unnecessary overflow in sched_clock") and in recent patch "clocksource: avoid unnecessary overflow in cyclecounter_cyc2ns()" https://lkml.org/lkml/2014/3/4/17, the mult-shift approach is replaced by 2 steps to avoid storing a large, intermediate value that