summaryrefslogtreecommitdiffstats
path: root/drivers/acpi
diff options
context:
space:
mode:
authorHenrik Austad <henrik@austad.us>2014-03-04 09:20:53 +0100
committerChris Metcalf <cmetcalf@tilera.com>2014-03-06 17:53:12 +0100
commit767f30210bee1bb74ab042e237c2a21e77874070 (patch)
tree83d5b3ea8f10688b80262172dda68e23b68816ff /drivers/acpi
parentLinux 3.14-rc5 (diff)
downloadlinux-767f30210bee1bb74ab042e237c2a21e77874070.tar.xz
linux-767f30210bee1bb74ab042e237c2a21e77874070.zip
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 <johnstul@us.ibm.com> CC: Mike Galbraith <bitbucket@online.de> CC: Salman Qazi <sqazi@google.com> Signed-off-by: Henrik Austad <henrik@austad.us> Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Diffstat (limited to 'drivers/acpi')
0 files changed, 0 insertions, 0 deletions