aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/posix-timers.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2011-02-01 08:51:03 -0500
committerThomas Gleixner <tglx@linutronix.de>2011-02-02 09:28:12 -0500
commit2fd1f04089cb657c5d6c484b280ec4d3398aa157 (patch)
tree34f314159f648a063293ad837d5d7b3973abc3e1 /kernel/posix-timers.c
parent65da528d7cc94966cf24d2a1e0837b689159b543 (diff)
posix-timers: Cleanup struct initializers
Cosmetic. No functional change 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: <20110201134417.745627057@linutronix.de>
Diffstat (limited to 'kernel/posix-timers.c')
-rw-r--r--kernel/posix-timers.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/kernel/posix-timers.c b/kernel/posix-timers.c
index 89bff3766d7d..e7d26afd8ee5 100644
--- a/kernel/posix-timers.c
+++ b/kernel/posix-timers.c
@@ -281,33 +281,33 @@ static int posix_get_coarse_res(const clockid_t which_clock, struct timespec *tp
281static __init int init_posix_timers(void) 281static __init int init_posix_timers(void)
282{ 282{
283 struct k_clock clock_realtime = { 283 struct k_clock clock_realtime = {
284 .clock_getres = hrtimer_get_res, 284 .clock_getres = hrtimer_get_res,
285 }; 285 };
286 struct k_clock clock_monotonic = { 286 struct k_clock clock_monotonic = {
287 .clock_getres = hrtimer_get_res, 287 .clock_getres = hrtimer_get_res,
288 .clock_get = posix_ktime_get_ts, 288 .clock_get = posix_ktime_get_ts,
289 .clock_set = do_posix_clock_nosettime, 289 .clock_set = do_posix_clock_nosettime,
290 }; 290 };
291 struct k_clock clock_monotonic_raw = { 291 struct k_clock clock_monotonic_raw = {
292 .clock_getres = hrtimer_get_res, 292 .clock_getres = hrtimer_get_res,
293 .clock_get = posix_get_monotonic_raw, 293 .clock_get = posix_get_monotonic_raw,
294 .clock_set = do_posix_clock_nosettime, 294 .clock_set = do_posix_clock_nosettime,
295 .timer_create = no_timer_create, 295 .timer_create = no_timer_create,
296 .nsleep = no_nsleep, 296 .nsleep = no_nsleep,
297 }; 297 };
298 struct k_clock clock_realtime_coarse = { 298 struct k_clock clock_realtime_coarse = {
299 .clock_getres = posix_get_coarse_res, 299 .clock_getres = posix_get_coarse_res,
300 .clock_get = posix_get_realtime_coarse, 300 .clock_get = posix_get_realtime_coarse,
301 .clock_set = do_posix_clock_nosettime, 301 .clock_set = do_posix_clock_nosettime,
302 .timer_create = no_timer_create, 302 .timer_create = no_timer_create,
303 .nsleep = no_nsleep, 303 .nsleep = no_nsleep,
304 }; 304 };
305 struct k_clock clock_monotonic_coarse = { 305 struct k_clock clock_monotonic_coarse = {
306 .clock_getres = posix_get_coarse_res, 306 .clock_getres = posix_get_coarse_res,
307 .clock_get = posix_get_monotonic_coarse, 307 .clock_get = posix_get_monotonic_coarse,
308 .clock_set = do_posix_clock_nosettime, 308 .clock_set = do_posix_clock_nosettime,
309 .timer_create = no_timer_create, 309 .timer_create = no_timer_create,
310 .nsleep = no_nsleep, 310 .nsleep = no_nsleep,
311 }; 311 };
312 312
313 register_posix_clock(CLOCK_REALTIME, &clock_realtime); 313 register_posix_clock(CLOCK_REALTIME, &clock_realtime);