mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-28 04:03:23 -04:00
timekeeping: Rename clockid_aux_valid() to clockid_is_aux_clock()
The current name is not clear about its behavior. Rename it. Signed-off-by: Thomas Weißschuh (Schneider Electric) <thomas.weissschuh@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@kernel.org> Link: https://patch.msgid.link/20260803-auxclock-nanosleep-prep-v2-1-910cbd485390@linutronix.de
This commit is contained in:
committed by
Thomas Gleixner
parent
32a05ba399
commit
4f39d3c19b
@@ -37,7 +37,7 @@ static inline int clockid_to_fd(const clockid_t clk)
|
||||
return ~(clk >> 3);
|
||||
}
|
||||
|
||||
static inline bool clockid_aux_valid(clockid_t id)
|
||||
static inline bool clockid_is_aux_clock(clockid_t id)
|
||||
{
|
||||
return IS_ENABLED(CONFIG_POSIX_AUX_CLOCKS) && id >= CLOCK_AUX && id <= CLOCK_AUX_LAST;
|
||||
}
|
||||
|
||||
@@ -3101,7 +3101,7 @@ static inline unsigned int clockid_to_tkid(unsigned int id)
|
||||
|
||||
static inline struct tk_data *aux_get_tk_data(clockid_t id)
|
||||
{
|
||||
if (!clockid_aux_valid(id))
|
||||
if (!clockid_is_aux_clock(id))
|
||||
return NULL;
|
||||
return &timekeeper_data[clockid_to_tkid(id)];
|
||||
}
|
||||
@@ -3196,7 +3196,7 @@ EXPORT_SYMBOL_GPL(ktime_get_aux_ts64);
|
||||
|
||||
static int aux_get_res(clockid_t id, struct timespec64 *tp)
|
||||
{
|
||||
if (!clockid_aux_valid(id))
|
||||
if (!clockid_is_aux_clock(id))
|
||||
return -ENODEV;
|
||||
|
||||
tp->tv_sec = aux_clock_resolution_ns() / NSEC_PER_SEC;
|
||||
|
||||
Reference in New Issue
Block a user