Lines Matching refs:clkid
194 static u64 cpu_clock_sample(const clockid_t clkid, struct task_struct *p) in cpu_clock_sample() argument
198 if (clkid == CPUCLOCK_SCHED) in cpu_clock_sample()
203 switch (clkid) { in cpu_clock_sample()
340 static u64 cpu_clock_sample_group(const clockid_t clkid, struct task_struct *p, in cpu_clock_sample_group() argument
356 return samples[clkid]; in cpu_clock_sample_group()
361 const clockid_t clkid = CPUCLOCK_WHICH(clock); in posix_cpu_clock_get() local
373 t = cpu_clock_sample(clkid, tsk); in posix_cpu_clock_get()
375 t = cpu_clock_sample_group(clkid, tsk, false); in posix_cpu_clock_get()
627 clockid_t clkid = CPUCLOCK_WHICH(timer->it_clock); in posix_cpu_timer_set() local
688 val = cpu_clock_sample(clkid, p); in posix_cpu_timer_set()
690 val = cpu_clock_sample_group(clkid, p, true); in posix_cpu_timer_set()
791 clockid_t clkid = CPUCLOCK_WHICH(timer->it_clock); in posix_cpu_timer_get() local
813 now = cpu_clock_sample(clkid, p); in posix_cpu_timer_get()
815 now = cpu_clock_sample_group(clkid, p, false); in posix_cpu_timer_get()
1048 clockid_t clkid = CPUCLOCK_WHICH(timer->it_clock); in posix_cpu_timer_rearm() local
1068 now = cpu_clock_sample(clkid, p); in posix_cpu_timer_rearm()
1070 now = cpu_clock_sample_group(clkid, p, true); in posix_cpu_timer_rearm()
1403 void set_process_cpu_timer(struct task_struct *tsk, unsigned int clkid, in set_process_cpu_timer() argument
1408 if (WARN_ON_ONCE(clkid >= CPUCLOCK_SCHED)) in set_process_cpu_timer()
1411 nextevt = &tsk->signal->posix_cputimers.bases[clkid].nextevt; in set_process_cpu_timer()
1412 now = cpu_clock_sample_group(clkid, tsk, true); in set_process_cpu_timer()