mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-07 23:11:27 +00:00
nohz: Remove useless argument on tick_nohz_task_switch()
Leftover from early code. Cc: Christoph Lameter <cl@linux.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Preeti U Murthy <preeti@linux.vnet.ibm.com> Cc: Rik van Riel <riel@redhat.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
This commit is contained in:
parent
59d2c7ca49
commit
de734f89b6
3 changed files with 6 additions and 6 deletions
|
@ -150,7 +150,7 @@ static inline void tick_nohz_full_add_cpus_to(struct cpumask *mask)
|
||||||
extern void tick_nohz_full_kick(void);
|
extern void tick_nohz_full_kick(void);
|
||||||
extern void tick_nohz_full_kick_cpu(int cpu);
|
extern void tick_nohz_full_kick_cpu(int cpu);
|
||||||
extern void tick_nohz_full_kick_all(void);
|
extern void tick_nohz_full_kick_all(void);
|
||||||
extern void __tick_nohz_task_switch(struct task_struct *tsk);
|
extern void __tick_nohz_task_switch(void);
|
||||||
#else
|
#else
|
||||||
static inline bool tick_nohz_full_enabled(void) { return false; }
|
static inline bool tick_nohz_full_enabled(void) { return false; }
|
||||||
static inline bool tick_nohz_full_cpu(int cpu) { return false; }
|
static inline bool tick_nohz_full_cpu(int cpu) { return false; }
|
||||||
|
@ -158,7 +158,7 @@ static inline void tick_nohz_full_add_cpus_to(struct cpumask *mask) { }
|
||||||
static inline void tick_nohz_full_kick_cpu(int cpu) { }
|
static inline void tick_nohz_full_kick_cpu(int cpu) { }
|
||||||
static inline void tick_nohz_full_kick(void) { }
|
static inline void tick_nohz_full_kick(void) { }
|
||||||
static inline void tick_nohz_full_kick_all(void) { }
|
static inline void tick_nohz_full_kick_all(void) { }
|
||||||
static inline void __tick_nohz_task_switch(struct task_struct *tsk) { }
|
static inline void __tick_nohz_task_switch(void) { }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static inline const struct cpumask *housekeeping_cpumask(void)
|
static inline const struct cpumask *housekeeping_cpumask(void)
|
||||||
|
@ -188,10 +188,10 @@ static inline void housekeeping_affine(struct task_struct *t)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void tick_nohz_task_switch(struct task_struct *tsk)
|
static inline void tick_nohz_task_switch(void)
|
||||||
{
|
{
|
||||||
if (tick_nohz_full_enabled())
|
if (tick_nohz_full_enabled())
|
||||||
__tick_nohz_task_switch(tsk);
|
__tick_nohz_task_switch();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -2489,7 +2489,7 @@ static struct rq *finish_task_switch(struct task_struct *prev)
|
||||||
put_task_struct(prev);
|
put_task_struct(prev);
|
||||||
}
|
}
|
||||||
|
|
||||||
tick_nohz_task_switch(current);
|
tick_nohz_task_switch();
|
||||||
return rq;
|
return rq;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -258,7 +258,7 @@ void tick_nohz_full_kick_all(void)
|
||||||
* It might need the tick due to per task/process properties:
|
* It might need the tick due to per task/process properties:
|
||||||
* perf events, posix cpu timers, ...
|
* perf events, posix cpu timers, ...
|
||||||
*/
|
*/
|
||||||
void __tick_nohz_task_switch(struct task_struct *tsk)
|
void __tick_nohz_task_switch(void)
|
||||||
{
|
{
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue