Lines Matching refs:max_state
37 unsigned int max_state; member
53 p->max_state = 0; in cpufreq_task_times_init()
60 unsigned int max_state = READ_ONCE(next_offset); in cpufreq_task_times_alloc() local
63 temp = kcalloc(max_state, sizeof(p->time_in_state[0]), GFP_ATOMIC); in cpufreq_task_times_alloc()
70 p->max_state = max_state; in cpufreq_task_times_alloc()
77 unsigned int max_state = READ_ONCE(next_offset); in cpufreq_task_times_realloc_locked() local
79 temp = krealloc(p->time_in_state, max_state * sizeof(u64), GFP_ATOMIC); in cpufreq_task_times_realloc_locked()
83 memset(p->time_in_state + p->max_state, 0, in cpufreq_task_times_realloc_locked()
84 (max_state - p->max_state) * sizeof(u64)); in cpufreq_task_times_realloc_locked()
85 p->max_state = max_state; in cpufreq_task_times_realloc_locked()
121 for (i = 0; i < freqs->max_state; i++) { in proc_time_in_state_show()
123 if (freqs->offset + i < p->max_state && in proc_time_in_state_show()
146 if ((state < p->max_state || !cpufreq_task_times_realloc_locked(p)) && in cpufreq_acct_update_power()
157 for (index = 0; index < freqs->max_state; ++index) { in cpufreq_times_get_index()
188 freqs->max_state = count; in cpufreq_times_create_policy()