Skip to content

Commit 200dbd6

Browse files
committed
posix-timers: Remove pointless comments
Documenting the obvious is just consuming space for no value. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Frederic Weisbecker <frederic@kernel.org> Link: https://lore.kernel.org/r/20230425183313.832240451@linutronix.de
1 parent 84999b8 commit 200dbd6

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

kernel/time/posix-timers.c

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -59,19 +59,6 @@ static const struct k_clock clock_realtime, clock_monotonic;
5959
#error "SIGEV_THREAD_ID must not share bit with other SIGEV values!"
6060
#endif
6161

62-
/*
63-
* CLOCKs: The POSIX standard calls for a couple of clocks and allows us
64-
* to implement others. This structure defines the various
65-
* clocks.
66-
*
67-
* FUNCTIONS: The CLOCKs structure defines possible functions to
68-
* handle various clock functions.
69-
*
70-
* The standard POSIX timer management code assumes the
71-
* following: 1.) The k_itimer struct (sched.h) is used for
72-
* the timer. 2.) The list, it_lock, it_clock, it_id and
73-
* it_pid fields are not modified by timer code.
74-
*/
7562
static struct k_itimer *__lock_timer(timer_t timer_id, unsigned long *flags);
7663

7764
#define lock_timer(tid, flags) \
@@ -141,7 +128,6 @@ static inline void unlock_timer(struct k_itimer *timr, unsigned long flags)
141128
spin_unlock_irqrestore(&timr->it_lock, flags);
142129
}
143130

144-
/* Get clock_realtime */
145131
static int posix_get_realtime_timespec(clockid_t which_clock, struct timespec64 *tp)
146132
{
147133
ktime_get_real_ts64(tp);
@@ -153,7 +139,6 @@ static ktime_t posix_get_realtime_ktime(clockid_t which_clock)
153139
return ktime_get_real();
154140
}
155141

156-
/* Set clock_realtime */
157142
static int posix_clock_realtime_set(const clockid_t which_clock,
158143
const struct timespec64 *tp)
159144
{
@@ -166,9 +151,6 @@ static int posix_clock_realtime_adj(const clockid_t which_clock,
166151
return do_adjtimex(t);
167152
}
168153

169-
/*
170-
* Get monotonic time for posix timers
171-
*/
172154
static int posix_get_monotonic_timespec(clockid_t which_clock, struct timespec64 *tp)
173155
{
174156
ktime_get_ts64(tp);
@@ -181,17 +163,13 @@ static ktime_t posix_get_monotonic_ktime(clockid_t which_clock)
181163
return ktime_get();
182164
}
183165

184-
/*
185-
* Get monotonic-raw time for posix timers
186-
*/
187166
static int posix_get_monotonic_raw(clockid_t which_clock, struct timespec64 *tp)
188167
{
189168
ktime_get_raw_ts64(tp);
190169
timens_add_monotonic(tp);
191170
return 0;
192171
}
193172

194-
195173
static int posix_get_realtime_coarse(clockid_t which_clock, struct timespec64 *tp)
196174
{
197175
ktime_get_coarse_real_ts64(tp);
@@ -242,9 +220,6 @@ static int posix_get_hrtimer_res(clockid_t which_clock, struct timespec64 *tp)
242220
return 0;
243221
}
244222

245-
/*
246-
* Initialize everything, well, just everything in Posix clocks/timers ;)
247-
*/
248223
static __init int init_posix_timers(void)
249224
{
250225
posix_timers_cache = kmem_cache_create("posix_timers_cache",

0 commit comments

Comments
 (0)