]> git.baikalelectronics.ru Git - kernel.git/commit
posix-timers: Introduce a syscall for clock tuning.
authorRichard Cochran <richardcochran@gmail.com>
Tue, 1 Feb 2011 13:52:26 +0000 (13:52 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 2 Feb 2011 14:28:19 +0000 (15:28 +0100)
commitb3163750af1c6b437c57c6ccb40e4422c1ccf3f2
treeca04ea979512e0037c52bca855dbf050b1b08360
parent7f69016801aeb529cb04847f7e9b0a735fc6d0b9
posix-timers: Introduce a syscall for clock tuning.

A new syscall is introduced that allows tuning of a POSIX clock. The
new call, clock_adjtime, takes two parameters, the clock ID and a
pointer to a struct timex. Any ADJTIMEX(2) operation may be requested
via this system call, but various POSIX clocks may or may not support
tuning.

[ tglx: Adapted to the posix-timer cleanup series. Avoid copy_to_user
   in the error case ]

Signed-off-by: Richard Cochran <richard.cochran@omicron.at>
Acked-by: John Stultz <johnstul@us.ibm.com>
LKML-Reference: <20110201134419.869804645@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/linux/posix-timers.h
include/linux/syscalls.h
kernel/compat.c
kernel/posix-timers.c