__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 b14bca97c9f5 ("hrtimer: Consolidate reprogramming code"). Drop it and update the two callers. No functional change.
Showing the changes to kernel/time/hrtimer.c (1 of 1 file). Show all
Unified · Split
| @@ -707,7 +707,7 @@ static inline void hrtimer_rearm_event(ktime_t expires_next, bool deferred) · 706 unmodified lines | ||
| 707 | 707 | tick_program_event(expires_next, 1); |
| 708 | 708 | } |
| 709 | 709 | |
| 710 | −static void __hrtimer_reprogram(struct hrtimer_cpu_base *cpu_base, struct hrtimer *next_timer, | |
| 710 | +static void __hrtimer_reprogram(struct hrtimer_cpu_base *cpu_base, | |
| 711 | 711 | ktime_t expires_next) |
| 712 | 712 | { |
| 713 | 713 | cpu_base->expires_next = expires_next; |
| @@ -743,7 +743,7 @@ static void hrtimer_force_reprogram(struct hrtimer_cpu_base *cpu_base, bool skip · 29 unmodified lines | ||
| 743 | 743 | if (skip_equal && expires_next == cpu_base->expires_next) |
| 744 | 744 | return; |
| 745 | 745 | |
| 746 | − __hrtimer_reprogram(cpu_base, cpu_base->next_timer, expires_next); | |
| 746 | + __hrtimer_reprogram(cpu_base, expires_next); | |
| 747 | 747 | } |
| 748 | 748 | |
| 749 | 749 | /* High resolution timer related functions */ |
| @@ -896,7 +896,7 @@ static void hrtimer_reprogram(struct hrtimer *timer, bool reprogram) · 146 unmodified lines | ||
| 896 | 896 | |
| 897 | 897 | cpu_base->next_timer = timer; |
| 898 | 898 | |
| 899 | − __hrtimer_reprogram(cpu_base, timer, expires); | |
| 899 | + __hrtimer_reprogram(cpu_base, expires); | |
| 900 | 900 | } |
| 901 | 901 | |
| 902 | 902 | static bool update_needs_ipi(struct hrtimer_cpu_base *cpu_base, unsigned int active) |