aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 338340a3fb89..bb827651558e 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -118,6 +118,12 @@
118 */ 118 */
119#define RUNTIME_INF ((u64)~0ULL) 119#define RUNTIME_INF ((u64)~0ULL)
120 120
121DEFINE_TRACE(sched_wait_task);
122DEFINE_TRACE(sched_wakeup);
123DEFINE_TRACE(sched_wakeup_new);
124DEFINE_TRACE(sched_switch);
125DEFINE_TRACE(sched_migrate_task);
126
121#ifdef CONFIG_SMP 127#ifdef CONFIG_SMP
122/* 128/*
123 * Divide a load by a sched group cpu_power : (load / sg->__cpu_power) 129 * Divide a load by a sched group cpu_power : (load / sg->__cpu_power)
@@ -4171,7 +4177,6 @@ void account_steal_time(struct task_struct *p, cputime_t steal)
4171 4177
4172 if (p == rq->idle) { 4178 if (p == rq->idle) {
4173 p->stime = cputime_add(p->stime, steal); 4179 p->stime = cputime_add(p->stime, steal);
4174 account_group_system_time(p, steal);
4175 if (atomic_read(&rq->nr_iowait) > 0) 4180 if (atomic_read(&rq->nr_iowait) > 0)
4176 cpustat->iowait = cputime64_add(cpustat->iowait, tmp); 4181 cpustat->iowait = cputime64_add(cpustat->iowait, tmp);
4177 else 4182 else
@@ -4307,7 +4312,7 @@ void __kprobes sub_preempt_count(int val)
4307 /* 4312 /*
4308 * Underflow? 4313 * Underflow?
4309 */ 4314 */
4310 if (DEBUG_LOCKS_WARN_ON(val > preempt_count())) 4315 if (DEBUG_LOCKS_WARN_ON(val > preempt_count() - (!!kernel_locked())))
4311 return; 4316 return;
4312 /* 4317 /*
4313 * Is the spinlock portion underflowing? 4318 * Is the spinlock portion underflowing?
@@ -5864,6 +5869,7 @@ void __cpuinit init_idle(struct task_struct *idle, int cpu)
5864 * The idle tasks have their own, simple scheduling class: 5869 * The idle tasks have their own, simple scheduling class:
5865 */ 5870 */
5866 idle->sched_class = &idle_sched_class; 5871 idle->sched_class = &idle_sched_class;
5872 ftrace_retfunc_init_task(idle);
5867} 5873}
5868 5874
5869/* 5875/*