]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/sched.c
x86, suspend, acpi: correct and add comments about Big Real Mode
[linux-2.6-omap-h63xx.git] / kernel / sched.c
index 3aaa5c8cb4214586bd283eedc2375baa3dc739c0..94ead43eda62bf8ebb9e054d9cad2a5838fe8f90 100644 (file)
@@ -5887,6 +5887,7 @@ static void migrate_dead_tasks(unsigned int dead_cpu)
                next = pick_next_task(rq, rq->curr);
                if (!next)
                        break;
+               next->sched_class->put_prev_task(rq, next);
                migrate_dead(dead_cpu, next);
 
        }
@@ -8501,6 +8502,9 @@ int sched_group_set_rt_period(struct task_group *tg, long rt_period_us)
        rt_period = (u64)rt_period_us * NSEC_PER_USEC;
        rt_runtime = tg->rt_bandwidth.rt_runtime;
 
+       if (rt_period == 0)
+               return -EINVAL;
+
        return tg_set_bandwidth(tg, rt_period, rt_runtime);
 }