From: Henrik Austad Date: Tue, 4 Mar 2014 08:20:53 +0000 (+0100) Subject: tile: avoid overflow in ns2cycles X-Git-Tag: v3.15-rc1~68^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=767f30210bee1bb74ab042e237c2a21e77874070;p=pandora-kernel.git tile: avoid overflow in ns2cycles 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 could overflow. arch/tile/kernel/time.c has a similar pattern in cycles2ns, and this copies the same pattern in this function CC: John Stultz CC: Mike Galbraith CC: Salman Qazi Signed-off-by: Henrik Austad Signed-off-by: Chris Metcalf --- Reading git-diff-tree failed