Lines Matching refs:index
107 static inline void task_group_account_field(struct task_struct *p, int index, in task_group_account_field() argument
116 __this_cpu_add(kernel_cpustat.cpustat[index], tmp); in task_group_account_field()
118 cgroup_account_cputime_field(p, index, tmp); in task_group_account_field()
128 int index; in account_user_time() local
134 index = (task_nice(p) > 0) ? CPUTIME_NICE : CPUTIME_USER; in account_user_time()
137 task_group_account_field(p, index, cputime); in account_user_time()
177 u64 cputime, enum cpu_usage_stat index) in account_system_index_time() argument
184 task_group_account_field(p, index, cputime); in account_system_index_time()
201 int index; in account_system_time() local
209 index = CPUTIME_IRQ; in account_system_time()
211 index = CPUTIME_SOFTIRQ; in account_system_time()
213 index = CPUTIME_SYSTEM; in account_system_time()
215 account_system_index_time(p, cputime, index); in account_system_time()