posix-timers: Introduce a syscall for clock tuning.
commitf1f1d5ebd10ffa4242bce7a90a56a222d6b7bc77
authorRichard Cochran <richardcochran@gmail.com>
Tue, 1 Feb 2011 13:52:26 +0000 (1 13:52 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 2 Feb 2011 14:28:19 +0000 (2 15:28 +0100)
treeca04ea979512e0037c52bca855dbf050b1b08360
parent65f5d80bdf83ec0d7f3887db10153bf3f36ed73c
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