diff options
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/sched/cputime.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/sched/cputime.c b/kernel/sched/cputime.c index e9e742ed7280..c1d7493825ae 100644 --- a/kernel/sched/cputime.c +++ b/kernel/sched/cputime.c | |||
| @@ -660,9 +660,9 @@ void vtime_account_system(struct task_struct *tsk) | |||
| 660 | void vtime_gen_account_irq_exit(struct task_struct *tsk) | 660 | void vtime_gen_account_irq_exit(struct task_struct *tsk) |
| 661 | { | 661 | { |
| 662 | write_seqlock(&tsk->vtime_seqlock); | 662 | write_seqlock(&tsk->vtime_seqlock); |
| 663 | __vtime_account_system(tsk); | ||
| 663 | if (context_tracking_in_user()) | 664 | if (context_tracking_in_user()) |
| 664 | tsk->vtime_snap_whence = VTIME_USER; | 665 | tsk->vtime_snap_whence = VTIME_USER; |
| 665 | __vtime_account_system(tsk); | ||
| 666 | write_sequnlock(&tsk->vtime_seqlock); | 666 | write_sequnlock(&tsk->vtime_seqlock); |
| 667 | } | 667 | } |
| 668 | 668 | ||
| @@ -680,8 +680,8 @@ void vtime_account_user(struct task_struct *tsk) | |||
| 680 | void vtime_user_enter(struct task_struct *tsk) | 680 | void vtime_user_enter(struct task_struct *tsk) |
| 681 | { | 681 | { |
| 682 | write_seqlock(&tsk->vtime_seqlock); | 682 | write_seqlock(&tsk->vtime_seqlock); |
| 683 | tsk->vtime_snap_whence = VTIME_USER; | ||
| 684 | __vtime_account_system(tsk); | 683 | __vtime_account_system(tsk); |
| 684 | tsk->vtime_snap_whence = VTIME_USER; | ||
| 685 | write_sequnlock(&tsk->vtime_seqlock); | 685 | write_sequnlock(&tsk->vtime_seqlock); |
| 686 | } | 686 | } |
| 687 | 687 | ||
