linux-kernel-test/arch/tile/kernel
Henrik Austad 767f30210b tile: avoid overflow in ns2cycles
In commit 4cecf6d401 ("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>
2014-03-06 11:53:12 -05:00
..
vdso tile: implement gettimeofday() via vDSO 2013-08-13 16:26:21 -04:00
asm-offsets.c tile: check for correct compiler earlier in asm-offsets.c 2013-09-03 14:53:09 -04:00
backtrace.c arch/tile: big-endian: properly bswap instruction bundles when backtracing 2012-06-18 13:11:21 -04:00
compat_signal.c constify copy_siginfo_to_user{,32}() 2013-11-09 00:16:29 -05:00
compat.c tile: remove stray blank space 2013-09-16 15:47:32 -04:00
early_printk.c tile: various console improvements 2013-08-12 14:46:18 -04:00
entry.S tile: implement gettimeofday() via vDSO 2013-08-13 16:26:21 -04:00
ftrace.c tile: support ftrace on tilegx 2013-08-30 10:20:13 -04:00
hardwall.c tile: change lock initalization in hardwall 2013-09-27 16:09:38 -04:00
head_32.S tile: parameterize VA and PA space more cleanly 2013-09-03 14:47:34 -04:00
head_64.S tile: parameterize VA and PA space more cleanly 2013-09-03 14:47:34 -04:00
hvglue_trace.c tile: provide traceability for hypervisor calls 2013-08-13 16:26:31 -04:00
hvglue.S tile: provide traceability for hypervisor calls 2013-08-13 16:26:31 -04:00
intvec_32.S tile: ensure interrupts disabled for preempt_schedule_irq() 2013-09-27 16:09:43 -04:00
intvec_64.S tile: ensure interrupts disabled for preempt_schedule_irq() 2013-09-27 16:09:43 -04:00
irq.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile 2013-09-06 11:14:33 -07:00
kgdb.c tilegx: support KGDB 2013-09-03 14:51:26 -04:00
kprobes.c tile: support kprobes on tilegx 2013-08-30 11:55:53 -04:00
machine_kexec.c arch/tile: support kexec() for tilegx 2012-05-25 12:48:25 -04:00
Makefile tilegx: support KGDB 2013-09-03 14:51:26 -04:00
mcount_64.S tile: support ftrace on tilegx 2013-08-30 10:20:13 -04:00
messaging.c tile: delete __cpuinit usage from all tile files 2013-07-14 19:36:54 -04:00
module.c modules: don't hand 0 to vmalloc. 2012-12-14 13:06:43 +10:30
pci_gx.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile 2013-09-06 11:14:33 -07:00
pci-dma.c tile PCI RC: make default consistent DMA mask 32-bit 2013-09-03 14:53:37 -04:00
pci.c tile/PCI: use cached pci_dev->pcie_mpss to simplify code 2013-09-24 12:10:04 -06:00
proc.c tile: fast-path unaligned memory access for tilegx 2013-08-13 16:04:10 -04:00
process.c tile: remove support for TILE64 2013-09-03 14:53:29 -04:00
ptrace.c tile: correct r1 value during syscall tracing 2013-08-30 11:56:20 -04:00
reboot.c tile: various console improvements 2013-08-12 14:46:18 -04:00
regs_32.S tile: change <asm/system.h> to <asm/switch_to.h> in comments 2013-09-03 14:53:17 -04:00
regs_64.S tile: change <asm/system.h> to <asm/switch_to.h> in comments 2013-09-03 14:53:17 -04:00
relocate_kernel_32.S tile: remove support for TILE64 2013-09-03 14:53:29 -04:00
relocate_kernel_64.S tile: remove support for TILE64 2013-09-03 14:53:29 -04:00
setup.c tile: remove HUGE_VMAP dead code 2013-09-13 11:15:24 -04:00
signal.c tile: implement gettimeofday() via vDSO 2013-08-13 16:26:21 -04:00
single_step.c tile: remove support for TILE64 2013-09-03 14:53:29 -04:00
smp.c tile: make __write_once a synonym for __read_mostly 2013-09-03 14:53:32 -04:00
smpboot.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile 2013-09-06 11:14:33 -07:00
stack.c arch: tile: re-use kbasename() helper 2013-09-30 10:34:46 -04:00
sys.c tile: support CONFIG_PREEMPT 2013-08-13 16:26:01 -04:00
sysfs.c tile: support reporting Tilera hypervisor statistics 2013-09-03 14:51:36 -04:00
tile-desc_32.c arch/tile: factor out <arch/opcode.h> header 2011-11-03 16:58:54 -04:00
tile-desc_64.c arch/tile: factor out <arch/opcode.h> header 2011-11-03 16:58:54 -04:00
time.c tile: avoid overflow in ns2cycles 2014-03-06 11:53:12 -05:00
tlb.c tile: do less L1 I-cache eviction 2013-08-30 11:56:34 -04:00
traps.c tile: use standard tile_bundle_bits type in traps.c 2013-09-03 14:53:22 -04:00
unaligned.c tile: fix typos in comment in arch/tile/kernel/unaligned.c 2013-09-13 10:57:54 -04:00
usb.c usb: add host support for the tilegx architecture 2012-07-18 16:40:29 -04:00
vdso.c tile: implement gettimeofday() via vDSO 2013-08-13 16:26:21 -04:00
vmlinux.lds.S tile: make __write_once a synonym for __read_mostly 2013-09-03 14:53:32 -04:00