musl: mips: add vdso support
authorhauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 23 Jan 2016 23:48:55 +0000 (23:48 +0000)
committerhauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 23 Jan 2016 23:48:55 +0000 (23:48 +0000)
commit0e692f8a6dc921321226fcca3c7aba6cc3a46954
tree868eaeef0d2c5bdb327221f3c91b6a398604df68
parent0dc13e55e3c51698fadf36d143ac8c4074aa3cdb
musl: mips: add vdso support

vdso support is available on mips starting with kernel 4.4, see kernel
commit a7f4df4e21 "MIPS: VDSO: Add implementations of gettimeofday()
and clock_gettime()" for details.

These are my micro benchmark results for 1.000.000 calls to
clock_gettime(CLOCK_MONOTONIC, &tp)

without vdso:
root@OpenWrt:/# time ./vdso-test
real 0m 0.95s
user 0m 0.24s
sys 0m 0.70s

with vdso:
root@OpenWrt:/# time /usr/bin/vdso-test
real 0m 0.35s
user 0m 0.34s
sys 0m 0.00s

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48466 3c298f89-4303-0410-b956-a3cf2f4a3e73
toolchain/musl/patches/030-mips-add-vdso-support.patch [new file with mode: 0644]