Home
last modified time | relevance | path

Searched refs:cputimer (Results 1 – 5 of 5) sorted by relevance

/linux-2.6.39/kernel/
Dsched_stats.h280 struct thread_group_cputimer *cputimer = &tsk->signal->cputimer; in account_group_user_time() local
282 if (!cputimer->running) in account_group_user_time()
285 spin_lock(&cputimer->lock); in account_group_user_time()
286 cputimer->cputime.utime = in account_group_user_time()
287 cputime_add(cputimer->cputime.utime, cputime); in account_group_user_time()
288 spin_unlock(&cputimer->lock); in account_group_user_time()
304 struct thread_group_cputimer *cputimer = &tsk->signal->cputimer; in account_group_system_time() local
306 if (!cputimer->running) in account_group_system_time()
309 spin_lock(&cputimer->lock); in account_group_system_time()
310 cputimer->cputime.stime = in account_group_system_time()
[all …]
Dposix-cpu-timers.c273 struct thread_group_cputimer *cputimer = &tsk->signal->cputimer; in thread_group_cputimer() local
277 spin_lock_irqsave(&cputimer->lock, flags); in thread_group_cputimer()
278 if (!cputimer->running) { in thread_group_cputimer()
279 cputimer->running = 1; in thread_group_cputimer()
287 update_gt_cputime(&cputimer->cputime, &sum); in thread_group_cputimer()
289 *times = cputimer->cputime; in thread_group_cputimer()
290 spin_unlock_irqrestore(&cputimer->lock, flags); in thread_group_cputimer()
997 struct thread_group_cputimer *cputimer = &sig->cputimer; in stop_process_timers() local
1000 spin_lock_irqsave(&cputimer->lock, flags); in stop_process_timers()
1001 cputimer->running = 0; in stop_process_timers()
[all …]
Dfork.c887 sig->cputimer.running = 1; in posix_cpu_timers_init_group()
/linux-2.6.39/include/linux/
Dinit_task.h34 .cputimer = { \
37 .lock = __SPIN_LOCK_UNLOCKED(sig.cputimer.lock), \
Dsched.h572 struct thread_group_cputimer cputimer; member
2480 spin_lock_init(&sig->cputimer.lock); in thread_group_cputime_init()