Lines Matching refs:index
99 static inline void task_group_account_field(struct task_struct *p, int index, in task_group_account_field() argument
108 __this_cpu_add(kernel_cpustat.cpustat[index], tmp); in task_group_account_field()
110 cgroup_account_cputime_field(p, index, tmp); in task_group_account_field()
120 int index; in account_user_time() local
126 index = (task_nice(p) > 0) ? CPUTIME_NICE : CPUTIME_USER; in account_user_time()
129 task_group_account_field(p, index, cputime); in account_user_time()
169 u64 cputime, enum cpu_usage_stat index) in account_system_index_time() argument
176 task_group_account_field(p, index, cputime); in account_system_index_time()
193 int index; in account_system_time() local
201 index = CPUTIME_IRQ; in account_system_time()
203 index = CPUTIME_SOFTIRQ; in account_system_time()
205 index = CPUTIME_SYSTEM; in account_system_time()
207 account_system_index_time(p, cputime, index); in account_system_time()