Lines Matching refs:prev
440 void vtime_task_switch(struct task_struct *prev) in vtime_task_switch() argument
442 if (is_idle_task(prev)) in vtime_task_switch()
443 vtime_account_idle(prev); in vtime_task_switch()
445 vtime_account_kernel(prev); in vtime_task_switch()
447 vtime_flush(prev); in vtime_task_switch()
448 arch_vtime_task_switch(prev); in vtime_task_switch()
468 void cputime_adjust(struct task_cputime *curr, struct prev_cputime *prev, in cputime_adjust() argument
577 void cputime_adjust(struct task_cputime *curr, struct prev_cputime *prev, in cputime_adjust() argument
584 raw_spin_lock_irqsave(&prev->lock, flags); in cputime_adjust()
595 if (prev->stime + prev->utime >= rtime) in cputime_adjust()
628 if (stime < prev->stime) in cputime_adjust()
629 stime = prev->stime; in cputime_adjust()
636 if (utime < prev->utime) { in cputime_adjust()
637 utime = prev->utime; in cputime_adjust()
641 prev->stime = stime; in cputime_adjust()
642 prev->utime = utime; in cputime_adjust()
644 *ut = prev->utime; in cputime_adjust()
645 *st = prev->stime; in cputime_adjust()
646 raw_spin_unlock_irqrestore(&prev->lock, flags); in cputime_adjust()
804 void vtime_task_switch_generic(struct task_struct *prev) in vtime_task_switch_generic() argument
806 struct vtime *vtime = &prev->vtime; in vtime_task_switch_generic()
810 vtime_account_idle(prev); in vtime_task_switch_generic()
812 __vtime_account_kernel(prev, vtime); in vtime_task_switch_generic()