aboutsummaryrefslogtreecommitdiffstats
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
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>
-rw-r--r--drivers/char/mmtimer.c14
-rw-r--r--kernel/posix-cpu-timers.c24
-rw-r--r--kernel/posix-timers.c38
3 files changed, 38 insertions, 38 deletions
diff --git a/drivers/char/mmtimer.c b/drivers/char/mmtimer.c
index ecd0082502ef..fd51cd8ee063 100644
--- a/drivers/char/mmtimer.c
+++ b/drivers/char/mmtimer.c
@@ -765,13 +765,13 @@ static int sgi_timer_set(struct k_itimer *timr, int flags,
765 765
766static struct k_clock sgi_clock = { 766static struct k_clock sgi_clock = {
767 .res = 0, 767 .res = 0,
768 .clock_set = sgi_clock_set, 768 .clock_set = sgi_clock_set,
769 .clock_get = sgi_clock_get, 769 .clock_get = sgi_clock_get,
770 .timer_create = sgi_timer_create, 770 .timer_create = sgi_timer_create,
771 .nsleep = do_posix_clock_nonanosleep, 771 .nsleep = do_posix_clock_nonanosleep,
772 .timer_set = sgi_timer_set, 772 .timer_set = sgi_timer_set,
773 .timer_del = sgi_timer_del, 773 .timer_del = sgi_timer_del,
774 .timer_get = sgi_timer_get 774 .timer_get = sgi_timer_get
775}; 775};
776 776
777/** 777/**
diff --git a/kernel/posix-cpu-timers.c b/kernel/posix-cpu-timers.c
index 05bb7173850e..11b91dc0992b 100644
--- a/kernel/posix-cpu-timers.c
+++ b/kernel/posix-cpu-timers.c
@@ -1607,20 +1607,20 @@ static long thread_cpu_nsleep_restart(struct restart_block *restart_block)
1607static __init int init_posix_cpu_timers(void) 1607static __init int init_posix_cpu_timers(void)
1608{ 1608{
1609 struct k_clock process = { 1609 struct k_clock process = {
1610 .clock_getres = process_cpu_clock_getres, 1610 .clock_getres = process_cpu_clock_getres,
1611 .clock_get = process_cpu_clock_get, 1611 .clock_get = process_cpu_clock_get,
1612 .clock_set = do_posix_clock_nosettime, 1612 .clock_set = do_posix_clock_nosettime,
1613 .timer_create = process_cpu_timer_create, 1613 .timer_create = process_cpu_timer_create,
1614 .nsleep = process_cpu_nsleep, 1614 .nsleep = process_cpu_nsleep,
1615 .nsleep_restart = process_cpu_nsleep_restart, 1615 .nsleep_restart = process_cpu_nsleep_restart,
1616 }; 1616 };
1617 struct k_clock thread = { 1617 struct k_clock thread = {
1618 .clock_getres = thread_cpu_clock_getres, 1618 .clock_getres = thread_cpu_clock_getres,
1619 .clock_get = thread_cpu_clock_get, 1619 .clock_get = thread_cpu_clock_get,
1620 .clock_set = do_posix_clock_nosettime, 1620 .clock_set = do_posix_clock_nosettime,
1621 .timer_create = thread_cpu_timer_create, 1621 .timer_create = thread_cpu_timer_create,
1622 .nsleep = thread_cpu_nsleep, 1622 .nsleep = thread_cpu_nsleep,
1623 .nsleep_restart = thread_cpu_nsleep_restart, 1623 .nsleep_restart = thread_cpu_nsleep_restart,
1624 }; 1624 };
1625 struct timespec ts; 1625 struct timespec ts;
1626 1626
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);