linux-stable-rt/arch/x86_64/ia32
Andi Kleen 3cfc348bf9 [PATCH] x86: Add portable getcpu call
For NUMA optimization and some other algorithms it is useful to have a fast
to get the current CPU and node numbers in user space.

x86-64 added a fast way to do this in a vsyscall. This adds a generic
syscall for other architectures to make it a generic portable facility.

I expect some of them will also implement it as a faster vsyscall.

The cache is an optimization for the x86-64 vsyscall optimization. Since
what the syscall returns is an approximation anyways and user space
often wants very fast results it can be cached for some time.  The norma
methods to get this information in user space are relatively slow

The vsyscall is in a better position to manage the cache because it has direct
access to a fast time stamp (jiffies). For the generic syscall optimization
it doesn't help much, but enforce a valid argument to keep programs
portable

I only added an i386 syscall entry for now. Other architectures can follow
as needed.

AK: Also added some cleanups from Andrew Morton

Signed-off-by: Andi Kleen <ak@suse.de>
2006-09-26 10:52:28 +02:00
..
Makefile
audit.c [PATCH] audit: AUDIT_PERM support 2006-09-11 13:32:30 -04:00
fpu32.c
ia32_aout.c
ia32_binfmt.c [PATCH] x86_64: Don't write out segments from vsyscall32 DSO if it is not mapped 2006-08-30 16:05:16 -07:00
ia32_signal.c [PATCH] Add TIF_RESTORE_SIGMASK 2006-09-26 10:52:26 +02:00
ia32entry.S [PATCH] x86: Add portable getcpu call 2006-09-26 10:52:28 +02:00
ipc32.c
mmap32.c
ptrace32.c
sys_ia32.c
syscall32.c
syscall32_syscall.S
tls32.c
vsyscall-sigreturn.S
vsyscall-syscall.S
vsyscall-sysenter.S
vsyscall.lds