• Home
  • Raw
  • Download

Lines Matching refs:tsk

47 static void get_cpu_itimer(struct task_struct *tsk, unsigned int clock_id,  in get_cpu_itimer()  argument
51 struct cpu_itimer *it = &tsk->signal->it[clock_id]; in get_cpu_itimer()
53 spin_lock_irq(&tsk->sighand->siglock); in get_cpu_itimer()
60 thread_group_sample_cputime(tsk, samples); in get_cpu_itimer()
70 spin_unlock_irq(&tsk->sighand->siglock); in get_cpu_itimer()
78 struct task_struct *tsk = current; in do_getitimer() local
82 spin_lock_irq(&tsk->sighand->siglock); in do_getitimer()
83 value->it_value = itimer_get_remtime(&tsk->signal->real_timer); in do_getitimer()
85 ktime_to_timespec64(tsk->signal->it_real_incr); in do_getitimer()
86 spin_unlock_irq(&tsk->sighand->siglock); in do_getitimer()
89 get_cpu_itimer(tsk, CPUCLOCK_VIRT, value); in do_getitimer()
92 get_cpu_itimer(tsk, CPUCLOCK_PROF, value); in do_getitimer()
168 static void set_cpu_itimer(struct task_struct *tsk, unsigned int clock_id, in set_cpu_itimer() argument
173 struct cpu_itimer *it = &tsk->signal->it[clock_id]; in set_cpu_itimer()
178 spin_lock_irq(&tsk->sighand->siglock); in set_cpu_itimer()
185 set_process_cpu_timer(tsk, clock_id, &nval, &oval); in set_cpu_itimer()
192 spin_unlock_irq(&tsk->sighand->siglock); in set_cpu_itimer()
209 struct task_struct *tsk = current; in do_setitimer() local
216 spin_lock_irq(&tsk->sighand->siglock); in do_setitimer()
217 timer = &tsk->signal->real_timer; in do_setitimer()
221 = ktime_to_timespec64(tsk->signal->it_real_incr); in do_setitimer()
225 spin_unlock_irq(&tsk->sighand->siglock); in do_setitimer()
231 tsk->signal->it_real_incr = in do_setitimer()
235 tsk->signal->it_real_incr = 0; in do_setitimer()
238 spin_unlock_irq(&tsk->sighand->siglock); in do_setitimer()
241 set_cpu_itimer(tsk, CPUCLOCK_VIRT, value, ovalue); in do_setitimer()
244 set_cpu_itimer(tsk, CPUCLOCK_PROF, value, ovalue); in do_setitimer()