mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-31 15:22:21 -04:00
hrtimer: Remove unused next_timer argument from __hrtimer_reprogram()
__hrtimer_reprogram() takes a @next_timer argument but never references
it; it only stores @expires_next into cpu_base->expires_next and
reprograms the clock event device. The argument has been unused since
commit b14bca97c9 ("hrtimer: Consolidate reprogramming code").
Drop it and update the two callers. No functional change.
Signed-off-by: Zhan Xusheng <zhanxusheng@xiaomi.com>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Link: https://patch.msgid.link/20260706084557.3845091-2-zhanxusheng@xiaomi.com
This commit is contained in:
committed by
Thomas Gleixner
parent
e2904ddb14
commit
d8966ca885
@@ -707,7 +707,7 @@ static inline void hrtimer_rearm_event(ktime_t expires_next, bool deferred)
|
|||||||
tick_program_event(expires_next, 1);
|
tick_program_event(expires_next, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void __hrtimer_reprogram(struct hrtimer_cpu_base *cpu_base, struct hrtimer *next_timer,
|
static void __hrtimer_reprogram(struct hrtimer_cpu_base *cpu_base,
|
||||||
ktime_t expires_next)
|
ktime_t expires_next)
|
||||||
{
|
{
|
||||||
cpu_base->expires_next = expires_next;
|
cpu_base->expires_next = expires_next;
|
||||||
@@ -743,7 +743,7 @@ static void hrtimer_force_reprogram(struct hrtimer_cpu_base *cpu_base, bool skip
|
|||||||
if (skip_equal && expires_next == cpu_base->expires_next)
|
if (skip_equal && expires_next == cpu_base->expires_next)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
__hrtimer_reprogram(cpu_base, cpu_base->next_timer, expires_next);
|
__hrtimer_reprogram(cpu_base, expires_next);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* High resolution timer related functions */
|
/* High resolution timer related functions */
|
||||||
@@ -896,7 +896,7 @@ static void hrtimer_reprogram(struct hrtimer *timer, bool reprogram)
|
|||||||
|
|
||||||
cpu_base->next_timer = timer;
|
cpu_base->next_timer = timer;
|
||||||
|
|
||||||
__hrtimer_reprogram(cpu_base, timer, expires);
|
__hrtimer_reprogram(cpu_base, expires);
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool update_needs_ipi(struct hrtimer_cpu_base *cpu_base, unsigned int active)
|
static bool update_needs_ipi(struct hrtimer_cpu_base *cpu_base, unsigned int active)
|
||||||
|
|||||||
Reference in New Issue
Block a user