[PATCH V10 10/15] posix clocks: remove useless default methods
From: Richard Cochran
Date: Thu Jan 27 2011 - 05:58:52 EST
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@xxxxxxxxxx>
---
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/