diff options
author | Joshua Bakita <bakitajoshua@gmail.com> | 2021-04-09 14:28:45 -0400 |
---|---|---|
committer | Joshua Bakita <bakitajoshua@gmail.com> | 2021-04-09 14:28:45 -0400 |
commit | 8bad63d41181f8c6052056baed7a8244a7149d2a (patch) | |
tree | 018cfbc7dc1837406efde3c9ce09c22b500d9f25 | |
parent | fe08839b19ada4b2ae1ecf94f8e469a7b293651b (diff) |
More rebase artifact cleanup
-rw-r--r-- | kernel/sched/litmus.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kernel/sched/litmus.c b/kernel/sched/litmus.c index a28aa5ab28f7..79d30027a5e9 100644 --- a/kernel/sched/litmus.c +++ b/kernel/sched/litmus.c | |||
@@ -150,7 +150,7 @@ litmus_schedule(struct rq *rq, struct task_struct *prev) | |||
150 | double_rq_lock(rq, other_rq); | 150 | double_rq_lock(rq, other_rq); |
151 | if (other_rq == task_rq(next) && | 151 | if (other_rq == task_rq(next) && |
152 | next->rt_param.stack_in_use == NO_CPU) { | 152 | next->rt_param.stack_in_use == NO_CPU) { |
153 | /* ok, we can grab it */ | 153 | /* ok, we can grab it */ |
154 | set_task_cpu(next, rq->cpu); | 154 | set_task_cpu(next, rq->cpu); |
155 | /* release the other CPU's runqueue, but keep ours */ | 155 | /* release the other CPU's runqueue, but keep ours */ |
156 | raw_spin_unlock(&other_rq->lock); | 156 | raw_spin_unlock(&other_rq->lock); |
@@ -264,6 +264,7 @@ static void put_prev_task_litmus(struct rq *rq, struct task_struct *p) | |||
264 | 264 | ||
265 | /* pick_next_task_litmus() - litmus_schedule() function | 265 | /* pick_next_task_litmus() - litmus_schedule() function |
266 | * | 266 | * |
267 | * @param prev Unused, as this is deprecated in our caller. | ||
267 | * return the next task to be scheduled | 268 | * return the next task to be scheduled |
268 | */ | 269 | */ |
269 | static struct task_struct *pick_next_task_litmus(struct rq *rq, | 270 | static struct task_struct *pick_next_task_litmus(struct rq *rq, |
@@ -325,13 +326,12 @@ static void set_next_task_litmus(struct rq *rq, struct task_struct *p) | |||
325 | 326 | ||
326 | 327 | ||
327 | #ifdef CONFIG_SMP | 328 | #ifdef CONFIG_SMP |
328 | /* Basic no-op balance function | 329 | static int |
329 | */ | ||
330 | static int | ||
331 | balance_litmus(struct rq *rq, struct task_struct *prev, struct rq_flags *rf) | 330 | balance_litmus(struct rq *rq, struct task_struct *prev, struct rq_flags *rf) |
332 | { | 331 | { |
333 | return 1; | 332 | return 1; |
334 | } | 333 | } |
334 | |||
335 | /* execve tries to rebalance task in this scheduling domain. | 335 | /* execve tries to rebalance task in this scheduling domain. |
336 | * We don't care about the scheduling domain; can gets called from | 336 | * We don't care about the scheduling domain; can gets called from |
337 | * exec, fork, wakeup. | 337 | * exec, fork, wakeup. |
@@ -373,7 +373,7 @@ const struct sched_class litmus_sched_class = { | |||
373 | .put_prev_task = put_prev_task_litmus, | 373 | .put_prev_task = put_prev_task_litmus, |
374 | 374 | ||
375 | #ifdef CONFIG_SMP | 375 | #ifdef CONFIG_SMP |
376 | .balance = balance_litmus, | 376 | .balance = balance_litmus, |
377 | .select_task_rq = select_task_rq_litmus, | 377 | .select_task_rq = select_task_rq_litmus, |
378 | #endif | 378 | #endif |
379 | 379 | ||