Lines Matching refs:prev
392 void vtime_common_task_switch(struct task_struct *prev) in vtime_common_task_switch() argument
394 if (is_idle_task(prev)) in vtime_common_task_switch()
395 vtime_account_idle(prev); in vtime_common_task_switch()
397 vtime_account_system(prev); in vtime_common_task_switch()
400 vtime_account_user(prev); in vtime_common_task_switch()
402 arch_vtime_task_switch(prev); in vtime_common_task_switch()
579 struct prev_cputime *prev, in cputime_adjust() argument
586 raw_spin_lock_irqsave(&prev->lock, flags); in cputime_adjust()
597 if (prev->stime + prev->utime >= rtime) in cputime_adjust()
625 if (stime < prev->stime) in cputime_adjust()
626 stime = prev->stime; in cputime_adjust()
633 if (utime < prev->utime) { in cputime_adjust()
634 utime = prev->utime; in cputime_adjust()
639 prev->stime = stime; in cputime_adjust()
640 prev->utime = utime; in cputime_adjust()
642 *ut = prev->utime; in cputime_adjust()
643 *st = prev->stime; in cputime_adjust()
644 raw_spin_unlock_irqrestore(&prev->lock, flags); in cputime_adjust()
764 void arch_vtime_task_switch(struct task_struct *prev) in arch_vtime_task_switch() argument
766 write_seqlock(&prev->vtime_seqlock); in arch_vtime_task_switch()
767 prev->vtime_snap_whence = VTIME_SLEEPING; in arch_vtime_task_switch()
768 write_sequnlock(&prev->vtime_seqlock); in arch_vtime_task_switch()