diff options
| author | Thomas Gleixner <tglx@kernel.org> | 2026-09-11 11:09:31 +0200 |
|---|---|---|
| committer | Thomas Gleixner <tglx@kernel.org> | 2026-09-16 18:44:03 +0200 |
| commit | 8e9ed3b66f409e324dade4a07fc08dae43160ec6 (patch) | |
| tree | 3271423c7e7e2d5d980bbcd282859a526bfed260 /include/linux | |
| parent | 24adce0b86c940ac3dcee0bcd75e799634fc9664 (diff) | |
| download | linux-next-8e9ed3b66f409e324dade4a07fc08dae43160ec6.tar.gz linux-next-8e9ed3b66f409e324dade4a07fc08dae43160ec6.zip | |
posix-cpu-timers: Move inlines out of public header
They are only used in the POSIX CPU timer code. No point in exposing them
globally and parsing them for nothing.
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Tested-by: Kijo Park <red993688@gmail.com>
Reviewed-by: Frederic Weisbecker <frederic@kernel.org>
Reviewed-by: Oleg Nesterov <oleg@redhat.com>
Link: https://patch.msgid.link/20260911090541.785749315@kernel.org
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/posix-timers.h | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/include/linux/posix-timers.h b/include/linux/posix-timers.h index 3050f9e44fee..0033a065e98a 100644 --- a/include/linux/posix-timers.h +++ b/include/linux/posix-timers.h @@ -66,38 +66,6 @@ struct cpu_timer { struct task_struct __rcu *handling; }; -static inline bool cpu_timer_enqueue(struct timerqueue_head *head, - struct cpu_timer *ctmr) -{ - ctmr->head = head; - return timerqueue_add(head, &ctmr->node); -} - -static inline bool cpu_timer_queued(struct cpu_timer *ctmr) -{ - return !!ctmr->head; -} - -static inline bool cpu_timer_dequeue(struct cpu_timer *ctmr) -{ - if (cpu_timer_queued(ctmr)) { - timerqueue_del(ctmr->head, &ctmr->node); - ctmr->head = NULL; - return true; - } - return false; -} - -static inline u64 cpu_timer_getexpires(struct cpu_timer *ctmr) -{ - return ctmr->node.expires; -} - -static inline void cpu_timer_setexpires(struct cpu_timer *ctmr, u64 exp) -{ - ctmr->node.expires = exp; -} - static inline void posix_cputimers_init(struct posix_cputimers *pct) { memset(pct, 0, sizeof(*pct)); |
