Lines Matching refs:index
103 static inline void task_group_account_field(struct task_struct *p, int index, in task_group_account_field() argument
112 __this_cpu_add(kernel_cpustat.cpustat[index], tmp); in task_group_account_field()
114 cgroup_account_cputime_field(p, index, tmp); in task_group_account_field()
124 int index; in account_user_time() local
130 index = (task_nice(p) > 0) ? CPUTIME_NICE : CPUTIME_USER; in account_user_time()
133 task_group_account_field(p, index, cputime); in account_user_time()
173 u64 cputime, enum cpu_usage_stat index) in account_system_index_time() argument
180 task_group_account_field(p, index, cputime); in account_system_index_time()
197 int index; in account_system_time() local
205 index = CPUTIME_IRQ; in account_system_time()
207 index = CPUTIME_SOFTIRQ; in account_system_time()
209 index = CPUTIME_SYSTEM; in account_system_time()
211 account_system_index_time(p, cputime, index); in account_system_time()