History

timekeeping: Rename clockid_aux_valid() to clockid_is_aux_clock()

The current name is not clear about its behavior. Rename it.

Thomas Weißschuh (Schneider Electric) committed 3 months ago

Commit 4f39d3c1 parent 32a05ba2 files · +3 −3Browse files

Showing the changes to kernel (1 of 2 files). Show all

Unified · Split

kernel/time/timekeeping.c+2−2
@@ -3101,7 +3101,7 @@ static inline unsigned int clockid_to_tkid(unsigned int id) · 3100 unmodified lines
31013101
31023102 static inline struct tk_data *aux_get_tk_data(clockid_t id)
31033103 {
3104− if (!clockid_aux_valid(id))
3104+ if (!clockid_is_aux_clock(id))
31053105 return NULL;
31063106 return &timekeeper_data[clockid_to_tkid(id)];
31073107 }
@@ -3196,7 +3196,7 @@ EXPORT_SYMBOL_GPL(ktime_get_aux_ts64); · 88 unmodified lines
31963196
31973197 static int aux_get_res(clockid_t id, struct timespec64 *tp)
31983198 {
3199− if (!clockid_aux_valid(id))
3199+ if (!clockid_is_aux_clock(id))
32003200 return -ENODEV;
32013201
32023202 tp->tv_sec = aux_clock_resolution_ns() / NSEC_PER_SEC;