Skip to content

Commit

Permalink
bfs: Refactor needs_other_cpu().
Browse files Browse the repository at this point in the history
  • Loading branch information
cchalpha authored and kernelOfTruth committed Feb 15, 2015
1 parent 6ebbfb7 commit 6270490
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions kernel/sched/bfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1335,9 +1335,7 @@ can_preempt(struct task_struct *p, int prio, u64 deadline)
*/
static inline bool needs_other_cpu(struct task_struct *p, int cpu)
{
if (unlikely(!cpu_isset(cpu, p->cpus_allowed)))
return true;
return false;
return !cpumask_test_cpu(cpu, &p->cpus_allowed);
}

/*
Expand Down

0 comments on commit 6270490

Please sign in to comment.