Commit 200dbd6d authored by Thomas Gleixner's avatar Thomas Gleixner

posix-timers: Remove pointless comments

Documenting the obvious is just consuming space for no value.
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Reviewed-by: default avatarFrederic Weisbecker <frederic@kernel.org>
Link: https://lore.kernel.org/r/20230425183313.832240451@linutronix.de
parent 84999b8b
...@@ -59,19 +59,6 @@ static const struct k_clock clock_realtime, clock_monotonic; ...@@ -59,19 +59,6 @@ static const struct k_clock clock_realtime, clock_monotonic;
#error "SIGEV_THREAD_ID must not share bit with other SIGEV values!" #error "SIGEV_THREAD_ID must not share bit with other SIGEV values!"
#endif #endif
/*
* CLOCKs: The POSIX standard calls for a couple of clocks and allows us
* to implement others. This structure defines the various
* clocks.
*
* FUNCTIONS: The CLOCKs structure defines possible functions to
* handle various clock functions.
*
* The standard POSIX timer management code assumes the
* following: 1.) The k_itimer struct (sched.h) is used for
* the timer. 2.) The list, it_lock, it_clock, it_id and
* it_pid fields are not modified by timer code.
*/
static struct k_itimer *__lock_timer(timer_t timer_id, unsigned long *flags); static struct k_itimer *__lock_timer(timer_t timer_id, unsigned long *flags);
#define lock_timer(tid, flags) \ #define lock_timer(tid, flags) \
...@@ -141,7 +128,6 @@ static inline void unlock_timer(struct k_itimer *timr, unsigned long flags) ...@@ -141,7 +128,6 @@ static inline void unlock_timer(struct k_itimer *timr, unsigned long flags)
spin_unlock_irqrestore(&timr->it_lock, flags); spin_unlock_irqrestore(&timr->it_lock, flags);
} }
/* Get clock_realtime */
static int posix_get_realtime_timespec(clockid_t which_clock, struct timespec64 *tp) static int posix_get_realtime_timespec(clockid_t which_clock, struct timespec64 *tp)
{ {
ktime_get_real_ts64(tp); ktime_get_real_ts64(tp);
...@@ -153,7 +139,6 @@ static ktime_t posix_get_realtime_ktime(clockid_t which_clock) ...@@ -153,7 +139,6 @@ static ktime_t posix_get_realtime_ktime(clockid_t which_clock)
return ktime_get_real(); return ktime_get_real();
} }
/* Set clock_realtime */
static int posix_clock_realtime_set(const clockid_t which_clock, static int posix_clock_realtime_set(const clockid_t which_clock,
const struct timespec64 *tp) const struct timespec64 *tp)
{ {
...@@ -166,9 +151,6 @@ static int posix_clock_realtime_adj(const clockid_t which_clock, ...@@ -166,9 +151,6 @@ static int posix_clock_realtime_adj(const clockid_t which_clock,
return do_adjtimex(t); return do_adjtimex(t);
} }
/*
* Get monotonic time for posix timers
*/
static int posix_get_monotonic_timespec(clockid_t which_clock, struct timespec64 *tp) static int posix_get_monotonic_timespec(clockid_t which_clock, struct timespec64 *tp)
{ {
ktime_get_ts64(tp); ktime_get_ts64(tp);
...@@ -181,9 +163,6 @@ static ktime_t posix_get_monotonic_ktime(clockid_t which_clock) ...@@ -181,9 +163,6 @@ static ktime_t posix_get_monotonic_ktime(clockid_t which_clock)
return ktime_get(); return ktime_get();
} }
/*
* Get monotonic-raw time for posix timers
*/
static int posix_get_monotonic_raw(clockid_t which_clock, struct timespec64 *tp) static int posix_get_monotonic_raw(clockid_t which_clock, struct timespec64 *tp)
{ {
ktime_get_raw_ts64(tp); ktime_get_raw_ts64(tp);
...@@ -191,7 +170,6 @@ static int posix_get_monotonic_raw(clockid_t which_clock, struct timespec64 *tp) ...@@ -191,7 +170,6 @@ static int posix_get_monotonic_raw(clockid_t which_clock, struct timespec64 *tp)
return 0; return 0;
} }
static int posix_get_realtime_coarse(clockid_t which_clock, struct timespec64 *tp) static int posix_get_realtime_coarse(clockid_t which_clock, struct timespec64 *tp)
{ {
ktime_get_coarse_real_ts64(tp); ktime_get_coarse_real_ts64(tp);
...@@ -242,9 +220,6 @@ static int posix_get_hrtimer_res(clockid_t which_clock, struct timespec64 *tp) ...@@ -242,9 +220,6 @@ static int posix_get_hrtimer_res(clockid_t which_clock, struct timespec64 *tp)
return 0; return 0;
} }
/*
* Initialize everything, well, just everything in Posix clocks/timers ;)
*/
static __init int init_posix_timers(void) static __init int init_posix_timers(void)
{ {
posix_timers_cache = kmem_cache_create("posix_timers_cache", posix_timers_cache = kmem_cache_create("posix_timers_cache",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment