diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2024-08-12 12:51:05 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2024-08-14 12:44:41 +0200 |
commit | 330dd6d9c0fce69718b53ca0bc4f2e3920f7f600 (patch) | |
tree | ed08d6ae016dd5ae48641e484515c5254190b6b9 /kernel/time | |
parent | 38cd4cee73a87c40a3e9ef31c0ca7b179fd282f0 (diff) | |
download | linux-stable-330dd6d9c0fce69718b53ca0bc4f2e3920f7f600.tar.gz linux-stable-330dd6d9c0fce69718b53ca0bc4f2e3920f7f600.tar.bz2 linux-stable-330dd6d9c0fce69718b53ca0bc4f2e3920f7f600.zip |
hrtimer: Annotate hrtimer_cpu_base_.*_expiry() for sparse.
The two hrtimer_cpu_base_.*_expiry() functions are wrappers around the
locking functions and sparse complains about the missing counterpart.
Add sparse annotation to denote that this bevaviour is expected.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20240812105326.2240000-3-bigeasy@linutronix.de
Diffstat (limited to 'kernel/time')
-rw-r--r-- | kernel/time/hrtimer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/time/hrtimer.c b/kernel/time/hrtimer.c index b8ee320208d4..f56ef23aad90 100644 --- a/kernel/time/hrtimer.c +++ b/kernel/time/hrtimer.c @@ -1351,11 +1351,13 @@ static void hrtimer_cpu_base_init_expiry_lock(struct hrtimer_cpu_base *base) } static void hrtimer_cpu_base_lock_expiry(struct hrtimer_cpu_base *base) + __acquires(&base->softirq_expiry_lock) { spin_lock(&base->softirq_expiry_lock); } static void hrtimer_cpu_base_unlock_expiry(struct hrtimer_cpu_base *base) + __releases(&base->softirq_expiry_lock) { spin_unlock(&base->softirq_expiry_lock); } |