]> xenbits.xensource.com Git - people/julieng/linux-arm.git/commit
ARM64:VDSO: Improve __do_get_tspec, don't use udiv
authorAndrew Pinski <apinski@cavium.com>
Thu, 5 Mar 2015 09:40:11 +0000 (01:40 -0800)
committerJulien Grall <julien.grall@citrix.com>
Mon, 28 Sep 2015 11:05:16 +0000 (12:05 +0100)
commit8c0bc052c0e716ebb60acea34080a2db31caef3e
tree86544f75e06822ffe8cb0ae10abd53426bf422aa
parentda0cecbb0113a3e9117abf69849ae0aba74f68f2
ARM64:VDSO: Improve __do_get_tspec, don't use udiv

In most other targets (x86/tile for an example),
the division in __do_get_tspec is converted into
a simple loop.  The main reason for this is
because the result of this division is going
to be either 0 or 1.
This changes the division to the simple loop
and thus speeding up gettimeofday.

Signed-off-by: Andrew Pinski <apinski@cavium.com>
Signed-off-by: Vadim Lomovtsev <Vadim.Lomovtsev@caviumnetworks.com>
arch/arm64/kernel/vdso/gettimeofday.S