diff options
author | Ingo Molnar <mingo@kernel.org> | 2013-07-01 05:16:54 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2013-07-01 05:18:53 -0400 |
commit | 2fd1b487884310d0aa0c0640179dc7490ad86313 (patch) | |
tree | 1083dce15bd7dc0858c3883b8a361242046c5e09 /kernel/sched/cputime.c | |
parent | 333bb864f192015a53b5060b829089decd0220ef (diff) | |
parent | 8bb495e3f02401ee6f76d1b1d77f3ac9f079e376 (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/cputime.c')
-rw-r--r-- | kernel/sched/cputime.c | 6 |
1 files changed, 3 insertions, 3 deletions
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(¤t->vtime_seqlock); | 747 | write_seqlock(¤t->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(¤t->vtime_seqlock); | 750 | write_sequnlock(¤t->vtime_seqlock); |
751 | } | 751 | } |
752 | 752 | ||
753 | void vtime_init_idle(struct task_struct *t) | 753 | void 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 | ||