Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1341175

[PATCH v4 5/5] getcpu_cache: wire up x86 32/64 system call

From Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Newsgroups linux.kernel
Subject [PATCH v4 5/5] getcpu_cache: wire up x86 32/64 system call
Date 2016-02-24 00:40 +0100
Message-ID <r5uIF-4hX-9@gated-at.bofh.it> (permalink)
References <r5uyZ-4cb-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Wire up the getcpu_cache system call on x86 32/64.

This provides an ABI improving the speed of a getcpu operation
on x86 by removing the need to perform a function call, "lsl"
instruction, or system call on the fast path.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
CC: Thomas Gleixner <tglx@linutronix.de>
CC: Paul Turner <pjt@google.com>
CC: Andrew Hunter <ahh@google.com>
CC: Peter Zijlstra <peterz@infradead.org>
CC: Andy Lutomirski <luto@amacapital.net>
CC: Andi Kleen <andi@firstfloor.org>
CC: Dave Watson <davejwatson@fb.com>
CC: Chris Lameter <cl@linux.com>
CC: Ingo Molnar <mingo@redhat.com>
CC: "H. Peter Anvin" <hpa@zytor.com>
CC: Ben Maurer <bmaurer@fb.com>
CC: Steven Rostedt <rostedt@goodmis.org>
CC: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
CC: Josh Triplett <josh@joshtriplett.org>
CC: Linus Torvalds <torvalds@linux-foundation.org>
CC: Andrew Morton <akpm@linux-foundation.org>
CC: linux-api@vger.kernel.org
---
 arch/x86/entry/syscalls/syscall_32.tbl | 1 +
 arch/x86/entry/syscalls/syscall_64.tbl | 1 +
 2 files changed, 2 insertions(+)

diff --git a/arch/x86/entry/syscalls/syscall_32.tbl b/arch/x86/entry/syscalls/syscall_32.tbl
index cb713df..c2372a7 100644
--- a/arch/x86/entry/syscalls/syscall_32.tbl
+++ b/arch/x86/entry/syscalls/syscall_32.tbl
@@ -384,3 +384,4 @@
 375	i386	membarrier		sys_membarrier
 376	i386	mlock2			sys_mlock2
 377	i386	copy_file_range		sys_copy_file_range
+378	i386	getcpu_cache		sys_getcpu_cache
diff --git a/arch/x86/entry/syscalls/syscall_64.tbl b/arch/x86/entry/syscalls/syscall_64.tbl
index dc1040a..6b3ffa0 100644
--- a/arch/x86/entry/syscalls/syscall_64.tbl
+++ b/arch/x86/entry/syscalls/syscall_64.tbl
@@ -333,6 +333,7 @@
 324	common	membarrier		sys_membarrier
 325	common	mlock2			sys_mlock2
 326	common	copy_file_range		sys_copy_file_range
+326	common	getcpu_cache		sys_getcpu_cache
 
 #
 # x32-specific system call numbers start at 512 to avoid cache impact
-- 
2.1.4

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v4 0/5] getcpu_cache system call for 4.6 Mathieu Desnoyers <mathieu.desnoyers@efficios.com> - 2016-02-24 00:30 +0100
  [PATCH v4 2/5] getcpu_cache: ARM resume notifier Mathieu Desnoyers <mathieu.desnoyers@efficios.com> - 2016-02-24 00:40 +0100
  [PATCH v4 5/5] getcpu_cache: wire up x86 32/64 system call Mathieu Desnoyers <mathieu.desnoyers@efficios.com> - 2016-02-24 00:40 +0100
  [PATCH v4 4/5] getcpu_cache: x86 32/64 resume notifier Mathieu Desnoyers <mathieu.desnoyers@efficios.com> - 2016-02-24 00:40 +0100
  Re: [PATCH v4 0/5] getcpu_cache system call for 4.6 "H. Peter Anvin" <hpa@zytor.com> - 2016-02-24 02:40 +0100
    Re: [PATCH v4 0/5] getcpu_cache system call for 4.6 Mathieu Desnoyers <mathieu.desnoyers@efficios.com> - 2016-02-24 05:10 +0100
      Re: [PATCH v4 0/5] getcpu_cache system call for 4.6 "H. Peter Anvin" <hpa@zytor.com> - 2016-02-24 21:30 +0100
        Re: [PATCH v4 0/5] getcpu_cache system call for 4.6 Mathieu Desnoyers <mathieu.desnoyers@efficios.com> - 2016-02-24 23:40 +0100

csiph-web