Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

posix-cpu-timers: Remove tsk argument from run_posix_cpu_timers()

It's always current. Don't give people wrong ideas.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Frederic Weisbecker <frederic@kernel.org>
Link: https://lkml.kernel.org/r/20190819143801.945469967@linutronix.de

+5 -4
+1 -1
include/linux/posix-timers.h
··· 118 118 struct rcu_head rcu; 119 119 }; 120 120 121 - void run_posix_cpu_timers(struct task_struct *task); 121 + void run_posix_cpu_timers(void); 122 122 void posix_cpu_timers_exit(struct task_struct *task); 123 123 void posix_cpu_timers_exit_group(struct task_struct *task); 124 124 void set_process_cpu_timer(struct task_struct *task, unsigned int clock_idx,
+3 -2
kernel/time/posix-cpu-timers.c
··· 1137 1137 * already updated our counts. We need to check if any timers fire now. 1138 1138 * Interrupts are disabled. 1139 1139 */ 1140 - void run_posix_cpu_timers(struct task_struct *tsk) 1140 + void run_posix_cpu_timers(void) 1141 1141 { 1142 - LIST_HEAD(firing); 1142 + struct task_struct *tsk = current; 1143 1143 struct k_itimer *timer, *next; 1144 1144 unsigned long flags; 1145 + LIST_HEAD(firing); 1145 1146 1146 1147 lockdep_assert_irqs_disabled(); 1147 1148
+1 -1
kernel/time/timer.c
··· 1728 1728 #endif 1729 1729 scheduler_tick(); 1730 1730 if (IS_ENABLED(CONFIG_POSIX_TIMERS)) 1731 - run_posix_cpu_timers(p); 1731 + run_posix_cpu_timers(); 1732 1732 } 1733 1733 1734 1734 /**