Lines Matching refs:stime
171 unsigned long now, unsigned long stime) in vtime_delta_scaled() argument
194 stime_scaled = stime; in vtime_delta_scaled()
196 if (deltascaled != stime + utime) { in vtime_delta_scaled()
198 stime_scaled = deltascaled * stime / (stime + utime); in vtime_delta_scaled()
214 unsigned long now, stime; in vtime_delta() local
219 stime = now - acct->starttime; in vtime_delta()
222 *stime_scaled = vtime_delta_scaled(acct, now, stime); in vtime_delta()
230 return stime; in vtime_delta()
234 unsigned long *stime, unsigned long *stime_scaled) in vtime_delta_kernel() argument
238 *stime = vtime_delta(acct, stime_scaled, &steal_time); in vtime_delta_kernel()
239 *stime -= min(*stime, steal_time); in vtime_delta_kernel()
246 unsigned long stime, stime_scaled; in vtime_account_kernel() local
248 vtime_delta_kernel(acct, &stime, &stime_scaled); in vtime_account_kernel()
251 acct->gtime += stime; in vtime_account_kernel()
256 acct->stime += stime; in vtime_account_kernel()
266 unsigned long stime, stime_scaled, steal_time; in vtime_account_idle() local
269 stime = vtime_delta(acct, &stime_scaled, &steal_time); in vtime_account_idle()
270 acct->idle_time += stime + steal_time; in vtime_account_idle()
276 unsigned long stime, stime_scaled; in vtime_account_irq_field() local
278 vtime_delta_kernel(acct, &stime, &stime_scaled); in vtime_account_irq_field()
279 *field += stime; in vtime_account_irq_field()
337 if (acct->stime) in vtime_flush()
338 account_system_index_time(tsk, cputime_to_nsecs(acct->stime), in vtime_flush()
353 acct->stime = 0; in vtime_flush()