Lines Matching refs:stime
215 p->stime += cputime; in __account_system_time()
316 cputime_t utime, stime; in thread_group_cputime() local
328 times->stime = sig->stime; in thread_group_cputime()
332 task_cputime(t, &utime, &stime); in thread_group_cputime()
334 times->stime += stime; in thread_group_cputime()
472 *st = p->stime; in task_cputime_adjusted()
482 *st = cputime.stime; in thread_group_cputime_adjusted()
544 static cputime_t scale_stime(u64 stime, u64 rtime, u64 total) in scale_stime() argument
550 if (stime > rtime) in scale_stime()
551 swap(rtime, stime); in scale_stime()
562 if (stime >> 31) in scale_stime()
566 stime <<= 1; in scale_stime()
580 scaled = div_u64((u64) (u32) stime * (u64) (u32) rtime, (u32)total); in scale_stime()
609 cputime_t rtime, stime, utime; in cputime_adjust() local
628 if (prev->stime + prev->utime >= rtime) in cputime_adjust()
631 stime = curr->stime; in cputime_adjust()
635 stime = rtime; in cputime_adjust()
636 } else if (stime == 0) { in cputime_adjust()
639 cputime_t total = stime + utime; in cputime_adjust()
641 stime = scale_stime((__force u64)stime, in cputime_adjust()
643 utime = rtime - stime; in cputime_adjust()
646 cputime_advance(&prev->stime, stime); in cputime_adjust()
651 *st = prev->stime; in cputime_adjust()
660 task_cputime(p, &cputime.utime, &cputime.stime); in task_cputime_adjusted()
855 void task_cputime(struct task_struct *t, cputime_t *utime, cputime_t *stime) in task_cputime() argument
859 fetch_task_cputime(t, utime, stime, &t->utime, in task_cputime()
860 &t->stime, &udelta, &sdelta); in task_cputime()
863 if (stime) in task_cputime()
864 *stime += sdelta; in task_cputime()