aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index d7fd42a431..5ad4276e4b 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -61,9 +61,11 @@
61#include <linux/sched_plugin.h> 61#include <linux/sched_plugin.h>
62#include <linux/sched_trace.h> 62#include <linux/sched_trace.h>
63#include <linux/rt_param.h> 63#include <linux/rt_param.h>
64
65#include <linux/trace.h> 64#include <linux/trace.h>
66 65
66/* LITMUS: avoid races with multiple task wake-ups */
67DEFINE_SPINLOCK(litmus_task_set_lock);
68
67/* 69/*
68 * Convert user-nice values [ -20 ... 0 ... 19 ] 70 * Convert user-nice values [ -20 ... 0 ... 19 ]
69 * to static priority [ MAX_RT_PRIO..MAX_PRIO-1 ], 71 * to static priority [ MAX_RT_PRIO..MAX_PRIO-1 ],
@@ -1693,7 +1695,6 @@ void fastcall wake_up_new_task(struct task_struct *p, unsigned long clone_flags)
1693 1695
1694 if (clone_flags & CLONE_REALTIME) { 1696 if (clone_flags & CLONE_REALTIME) {
1695 /* just mark the task as stopped */ 1697 /* just mark the task as stopped */
1696 /* CLEANUP: Do we have to remove the task from the rq? */
1697 p->state = TASK_STOPPED; 1698 p->state = TASK_STOPPED;
1698 return; 1699 return;
1699 } 1700 }
@@ -5541,7 +5542,7 @@ static struct notifier_block __cpuinitdata migration_notifier = {
5541 .priority = 10 5542 .priority = 10
5542}; 5543};
5543 5544
5544int __init linux_migration_init(void) 5545int __init migration_init(void)
5545{ 5546{
5546 void *cpu = (void *)(long)smp_processor_id(); 5547 void *cpu = (void *)(long)smp_processor_id();
5547 int err; 5548 int err;
@@ -7003,7 +7004,7 @@ static int update_sched_domains(struct notifier_block *nfb,
7003 return NOTIFY_OK; 7004 return NOTIFY_OK;
7004} 7005}
7005 7006
7006void __init linux_sched_init_smp(void) 7007void __init sched_init_smp(void)
7007{ 7008{
7008 cpumask_t non_isolated_cpus; 7009 cpumask_t non_isolated_cpus;
7009 7010
@@ -7036,7 +7037,7 @@ int in_sched_functions(unsigned long addr)
7036 && addr < (unsigned long)__sched_text_end); 7037 && addr < (unsigned long)__sched_text_end);
7037} 7038}
7038 7039
7039void __init linux_sched_init(void) 7040void __init sched_init(void)
7040{ 7041{
7041 int i, j, k; 7042 int i, j, k;
7042 7043