aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2013-07-01 05:16:54 -0400
committerIngo Molnar <mingo@kernel.org>2013-07-01 05:18:53 -0400
commit2fd1b487884310d0aa0c0640179dc7490ad86313 (patch)
tree1083dce15bd7dc0858c3883b8a361242046c5e09 /kernel/sched
parent333bb864f192015a53b5060b829089decd0220ef (diff)
parent8bb495e3f02401ee6f76d1b1d77f3ac9f079e376 (diff)
Merge tag 'v3.10' into sched/core
Merge in a recent upstream commit: c2853c8df57f include/linux/math64.h: add div64_ul() because: 72a4cf20cb71 sched: Change cfs_rq load avg to unsigned long relies on it. [ We don't rebase sched/core for this, because the handful of followup commits after the broken commit are not behavioral changes so are unlikely to be needed during bisection. ] Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/sched')
-rw-r--r--kernel/sched/core.c2
-rw-r--r--kernel/sched/cputime.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 08746cc12370..9b1f2e533b95 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -4184,7 +4184,7 @@ void __cpuinit init_idle(struct task_struct *idle, int cpu)
4184 */ 4184 */
4185 idle->sched_class = &idle_sched_class; 4185 idle->sched_class = &idle_sched_class;
4186 ftrace_graph_init_idle_task(idle, cpu); 4186 ftrace_graph_init_idle_task(idle, cpu);
4187 vtime_init_idle(idle); 4187 vtime_init_idle(idle, cpu);
4188#if defined(CONFIG_SMP) 4188#if defined(CONFIG_SMP)
4189 sprintf(idle->comm, "%s/%d", INIT_TASK_COMM, cpu); 4189 sprintf(idle->comm, "%s/%d", INIT_TASK_COMM, cpu);
4190#endif 4190#endif
diff --git a/kernel/sched/cputime.c b/kernel/sched/cputime.c
index 94691bcd7364..a7959e05a9d5 100644
--- a/kernel/sched/cputime.c
+++ b/kernel/sched/cputime.c
@@ -746,17 +746,17 @@ void arch_vtime_task_switch(struct task_struct *prev)
746 746
747 write_seqlock(&current->vtime_seqlock); 747 write_seqlock(&current->vtime_seqlock);
748 current->vtime_snap_whence = VTIME_SYS; 748 current->vtime_snap_whence = VTIME_SYS;
749 current->vtime_snap = sched_clock(); 749 current->vtime_snap = sched_clock_cpu(smp_processor_id());
750 write_sequnlock(&current->vtime_seqlock); 750 write_sequnlock(&current->vtime_seqlock);
751} 751}
752 752
753void vtime_init_idle(struct task_struct *t) 753void vtime_init_idle(struct task_struct *t, int cpu)
754{ 754{
755 unsigned long flags; 755 unsigned long flags;
756 756
757 write_seqlock_irqsave(&t->vtime_seqlock, flags); 757 write_seqlock_irqsave(&t->vtime_seqlock, flags);
758 t->vtime_snap_whence = VTIME_SYS; 758 t->vtime_snap_whence = VTIME_SYS;
759 t->vtime_snap = sched_clock(); 759 t->vtime_snap = sched_clock_cpu(cpu);
760 write_sequnlock_irqrestore(&t->vtime_seqlock, flags); 760 write_sequnlock_irqrestore(&t->vtime_seqlock, flags);
761} 761}
762 762