posix-timers: Convert clock_settime to clockid_to_kclock()
Use the new kclock decoding function in clock_settime and cleanup all kclocks which use the default functions. Rename the misnomed common_clock_set() to posix_clock_realtime_set(). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: John Stultz <johnstul@us.ibm.com> Tested-by: Richard Cochran <richard.cochran@omicron.at> LKML-Reference: <20110201134418.518851246@linutronix.de>
This commit is contained in:
@@ -1604,7 +1604,6 @@ static __init int init_posix_cpu_timers(void)
|
||||
struct k_clock process = {
|
||||
.clock_getres = process_cpu_clock_getres,
|
||||
.clock_get = process_cpu_clock_get,
|
||||
.clock_set = do_posix_clock_nosettime,
|
||||
.timer_create = process_cpu_timer_create,
|
||||
.nsleep = process_cpu_nsleep,
|
||||
.nsleep_restart = process_cpu_nsleep_restart,
|
||||
@@ -1612,7 +1611,6 @@ static __init int init_posix_cpu_timers(void)
|
||||
struct k_clock thread = {
|
||||
.clock_getres = thread_cpu_clock_getres,
|
||||
.clock_get = thread_cpu_clock_get,
|
||||
.clock_set = do_posix_clock_nosettime,
|
||||
.timer_create = thread_cpu_timer_create,
|
||||
};
|
||||
struct timespec ts;
|
||||
|
Reference in New Issue
Block a user