diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-02-01 08:51:48 -0500 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2011-02-02 09:28:14 -0500 |
commit | 26f9a4796af330173d790c8d2b5e2efcc489e755 (patch) | |
tree | a44b9dbfeedeb22d5f34ce49e4dd2b26cfbeaf97 /kernel/posix-cpu-timers.c | |
parent | 79c9da0d0539fb341a1b48a2a5a23d974726de90 (diff) |
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>
Diffstat (limited to 'kernel/posix-cpu-timers.c')
-rw-r--r-- | kernel/posix-cpu-timers.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/posix-cpu-timers.c b/kernel/posix-cpu-timers.c index 8dc4cd7faf89..504fbab10b82 100644 --- a/kernel/posix-cpu-timers.c +++ b/kernel/posix-cpu-timers.c | |||
@@ -1604,7 +1604,6 @@ static __init int init_posix_cpu_timers(void) | |||
1604 | struct k_clock process = { | 1604 | struct k_clock process = { |
1605 | .clock_getres = process_cpu_clock_getres, | 1605 | .clock_getres = process_cpu_clock_getres, |
1606 | .clock_get = process_cpu_clock_get, | 1606 | .clock_get = process_cpu_clock_get, |
1607 | .clock_set = do_posix_clock_nosettime, | ||
1608 | .timer_create = process_cpu_timer_create, | 1607 | .timer_create = process_cpu_timer_create, |
1609 | .nsleep = process_cpu_nsleep, | 1608 | .nsleep = process_cpu_nsleep, |
1610 | .nsleep_restart = process_cpu_nsleep_restart, | 1609 | .nsleep_restart = process_cpu_nsleep_restart, |
@@ -1612,7 +1611,6 @@ static __init int init_posix_cpu_timers(void) | |||
1612 | struct k_clock thread = { | 1611 | struct k_clock thread = { |
1613 | .clock_getres = thread_cpu_clock_getres, | 1612 | .clock_getres = thread_cpu_clock_getres, |
1614 | .clock_get = thread_cpu_clock_get, | 1613 | .clock_get = thread_cpu_clock_get, |
1615 | .clock_set = do_posix_clock_nosettime, | ||
1616 | .timer_create = thread_cpu_timer_create, | 1614 | .timer_create = thread_cpu_timer_create, |
1617 | }; | 1615 | }; |
1618 | struct timespec ts; | 1616 | struct timespec ts; |