x86: Add clock_adjtime for x86
authorRichard Cochran <richard.cochran@omicron.at>
Tue, 1 Feb 2011 13:52:30 +0000 (13:52 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 2 Feb 2011 14:28:19 +0000 (15:28 +0100)
This patch adds the clock_adjtime system call to the x86 architecture.

Signed-off-by: Richard Cochran <richard.cochran@omicron.at>
Acked-by: John Stultz <johnstul@us.ibm.com>
LKML-Reference: <20110201134419.968905083@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/ia32/ia32entry.S
arch/x86/include/asm/unistd_32.h
arch/x86/include/asm/unistd_64.h
arch/x86/kernel/syscall_table_32.S

index 518bb99c339480820fc3995b1456d29704d67f07..0ed78961b60f480500e1879ddac9ac3b5915ee0d 100644 (file)
@@ -851,4 +851,5 @@ ia32_sys_call_table:
        .quad sys_fanotify_init
        .quad sys32_fanotify_mark
        .quad sys_prlimit64             /* 340 */
+       .quad compat_sys_clock_adjtime
 ia32_syscall_end:
index b766a5e8ba0e7802501b049034394a343216cf4a..b6f73f1bc7aca9f33b589376ca2ea2470679df3e 100644 (file)
 #define __NR_fanotify_init     338
 #define __NR_fanotify_mark     339
 #define __NR_prlimit64         340
+#define __NR_clock_adjtime     341
 
 #ifdef __KERNEL__
 
-#define NR_syscalls 341
+#define NR_syscalls 342
 
 #define __ARCH_WANT_IPC_PARSE_VERSION
 #define __ARCH_WANT_OLD_READDIR
index 363e9b8a715b6d5144ebc8135d65dc75ce9e9e5c..5ee30858f5d63da8ee69955a9c8abdebec323721 100644 (file)
@@ -669,6 +669,8 @@ __SYSCALL(__NR_fanotify_init, sys_fanotify_init)
 __SYSCALL(__NR_fanotify_mark, sys_fanotify_mark)
 #define __NR_prlimit64                         302
 __SYSCALL(__NR_prlimit64, sys_prlimit64)
+#define __NR_clock_adjtime                     303
+__SYSCALL(__NR_clock_adjtime, sys_clock_adjtime)
 
 #ifndef __NO_STUBS
 #define __ARCH_WANT_OLD_READDIR
index b35786dc9b8f133fc03fd5f25629e62d1f6ae287..68c7b9aa5001f36f8b3f563448a0362bf11c4b56 100644 (file)
@@ -340,3 +340,4 @@ ENTRY(sys_call_table)
        .long sys_fanotify_init
        .long sys_fanotify_mark
        .long sys_prlimit64             /* 340 */
+       .long sys_clock_adjtime