lkml.org 
[lkml]   [2011]   [Jan]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH V10 10/15] posix clocks: remove useless default methods
For the k_clocks which do not allow timers or sleeping, it does not make
sense to use the default "common" methods for these kinds of functions.
Thus we simply remove them.

Signed-off-by: Richard Cochran <richard.cochran@omicron.at>
---
kernel/posix-timers.c | 15 ---------------
1 files changed, 0 insertions(+), 15 deletions(-)

diff --git a/kernel/posix-timers.c b/kernel/posix-timers.c
index 7a3683d..f227474 100644
--- a/kernel/posix-timers.c
+++ b/kernel/posix-timers.c
@@ -262,11 +262,6 @@ static __init int init_posix_timers(void)
.clock_adj = do_posix_clock_noadjtime,
.timer_create = no_timer_create,
.nsleep = no_nsleep,
- /* defaults: */
- .nsleep_restart = common_nsleep_restart,
- .timer_del = common_timer_del,
- .timer_get = common_timer_get,
- .timer_set = common_timer_set,
};
struct k_clock clock_realtime_coarse = {
.clock_getres = posix_get_coarse_res,
@@ -275,11 +270,6 @@ static __init int init_posix_timers(void)
.clock_adj = do_posix_clock_noadjtime,
.timer_create = no_timer_create,
.nsleep = no_nsleep,
- /* defaults: */
- .nsleep_restart = common_nsleep_restart,
- .timer_del = common_timer_del,
- .timer_get = common_timer_get,
- .timer_set = common_timer_set,
};
struct k_clock clock_monotonic_coarse = {
.clock_getres = posix_get_coarse_res,
@@ -288,11 +278,6 @@ static __init int init_posix_timers(void)
.clock_adj = do_posix_clock_noadjtime,
.timer_create = no_timer_create,
.nsleep = no_nsleep,
- /* defaults: */
- .nsleep_restart = common_nsleep_restart,
- .timer_del = common_timer_del,
- .timer_get = common_timer_get,
- .timer_set = common_timer_set,
};
struct k_clock clock_posix_cpu = {
.clock_getres = posix_cpu_clock_getres,
--
1.7.0.4


\
 
 \ /
  Last update: 2011-01-27 12:01    [W:0.147 / U:2.084 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site