summaryrefslogtreecommitdiffstats
path: root/kernel/sched/sched.h
diff options
context:
space:
mode:
authorValentin Schneider <valentin.schneider@arm.com>2020-11-02 18:45:13 +0000
committerPeter Zijlstra <peterz@infradead.org>2020-11-10 18:39:06 +0100
commit3aef1551e942860a3881087171ef0cd45f6ebda7 (patch)
tree9383e5177bdfed1c365b2469bff37d895878bf4b /kernel/sched/sched.h
parent17770579059258c5f1eef759e941af5f1a54f482 (diff)
downloadlinux-3aef1551e942860a3881087171ef0cd45f6ebda7.tar.bz2
sched: Remove select_task_rq()'s sd_flag parameter
Only select_task_rq_fair() uses that parameter to do an actual domain search, other classes only care about what kind of wakeup is happening (fork, exec, or "regular") and thus just translate the flag into a wakeup type. WF_TTWU and WF_EXEC have just been added, use these along with WF_FORK to encode the wakeup types we care about. For select_task_rq_fair(), we can simply use the shiny new WF_flag : SD_flag mapping. Signed-off-by: Valentin Schneider <valentin.schneider@arm.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/20201102184514.2733-3-valentin.schneider@arm.com
Diffstat (limited to 'kernel/sched/sched.h')
-rw-r--r--kernel/sched/sched.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h
index 47258735a93f..590e6f27068c 100644
--- a/kernel/sched/sched.h
+++ b/kernel/sched/sched.h
@@ -1833,7 +1833,7 @@ struct sched_class {
#ifdef CONFIG_SMP
int (*balance)(struct rq *rq, struct task_struct *prev, struct rq_flags *rf);
- int (*select_task_rq)(struct task_struct *p, int task_cpu, int sd_flag, int flags);
+ int (*select_task_rq)(struct task_struct *p, int task_cpu, int flags);
void (*migrate_task_rq)(struct task_struct *p, int new_cpu);
void (*task_woken)(struct rq *this_rq, struct task_struct *task);