diff options
author | Andy Lutomirski <luto@MIT.EDU> | 2011-05-23 15:31:30 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2011-05-24 14:51:29 +0200 |
commit | f144a6b4d1688675d88990e29567b2335b48205e (patch) | |
tree | 80001b7e1c1fd3b4877febd416d3d0c949edd6c3 /arch/x86/vdso/vdso.lds.S | |
parent | x86-64: Turn off -pg and turn on -foptimize-sibling-calls for vDSO (diff) | |
download | linux-f144a6b4d1688675d88990e29567b2335b48205e.tar.xz linux-f144a6b4d1688675d88990e29567b2335b48205e.zip |
x86-64: Add time to vDSO
The only fast implementation of time(2) we expose is through the
vsyscall page and we want to get userspace to stop using the
vsyscall page. So make it available through the vDSO as well.
This is essentially a cut-n-paste job.
Signed-off-by: Andy Lutomirski <luto@mit.edu>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Borislav Petkov <bp@amd64.org>
Link: http://lkml.kernel.org/r/%3Cbf963bac5207de4b29613f27c42705e4371812a8.1306156808.git.luto%40mit.edu%3E
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/vdso/vdso.lds.S')
-rw-r--r-- | arch/x86/vdso/vdso.lds.S | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/vdso/vdso.lds.S b/arch/x86/vdso/vdso.lds.S index 81f250011f71..b96b2677cad8 100644 --- a/arch/x86/vdso/vdso.lds.S +++ b/arch/x86/vdso/vdso.lds.S @@ -23,6 +23,8 @@ VERSION { __vdso_gettimeofday; getcpu; __vdso_getcpu; + time; + __vdso_time; local: *; }; } |