aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched_fair.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sched_fair.c')
-rw-r--r--kernel/sched_fair.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c
index 354769979c02..ccecfec02a70 100644
--- a/kernel/sched_fair.c
+++ b/kernel/sched_fair.c
@@ -1432,7 +1432,7 @@ static inline unsigned long effective_load(struct task_group *tg, int cpu,
1432 1432
1433static int wake_affine(struct sched_domain *sd, struct task_struct *p, int sync) 1433static int wake_affine(struct sched_domain *sd, struct task_struct *p, int sync)
1434{ 1434{
1435 unsigned long this_load, load; 1435 s64 this_load, load;
1436 int idx, this_cpu, prev_cpu; 1436 int idx, this_cpu, prev_cpu;
1437 unsigned long tl_per_task; 1437 unsigned long tl_per_task;
1438 struct task_group *tg; 1438 struct task_group *tg;
@@ -1471,8 +1471,8 @@ static int wake_affine(struct sched_domain *sd, struct task_struct *p, int sync)
1471 * Otherwise check if either cpus are near enough in load to allow this 1471 * Otherwise check if either cpus are near enough in load to allow this
1472 * task to be woken on this_cpu. 1472 * task to be woken on this_cpu.
1473 */ 1473 */
1474 if (this_load) { 1474 if (this_load > 0) {
1475 unsigned long this_eff_load, prev_eff_load; 1475 s64 this_eff_load, prev_eff_load;
1476 1476
1477 this_eff_load = 100; 1477 this_eff_load = 100;
1478 this_eff_load *= power_of(prev_cpu); 1478 this_eff_load *= power_of(prev_cpu);