Searched refs:time_in_state (Results 1 – 4 of 4) sorted by relevance
/drivers/cpufreq/ |
D | cpufreq_times.c | 51 p->time_in_state = NULL; in cpufreq_task_times_init() 63 temp = kcalloc(max_state, sizeof(p->time_in_state[0]), GFP_ATOMIC); in cpufreq_task_times_alloc() 68 p->time_in_state = temp; in cpufreq_task_times_alloc() 79 temp = krealloc(p->time_in_state, max_state * sizeof(u64), GFP_ATOMIC); in cpufreq_task_times_realloc_locked() 82 p->time_in_state = temp; in cpufreq_task_times_realloc_locked() 83 memset(p->time_in_state + p->max_state, 0, in cpufreq_task_times_realloc_locked() 94 if (!p->time_in_state) in cpufreq_task_times_exit() 98 temp = p->time_in_state; in cpufreq_task_times_exit() 99 p->time_in_state = NULL; in cpufreq_task_times_exit() 124 p->time_in_state) in proc_time_in_state_show() [all …]
|
D | cpufreq_stats.c | 21 u64 *time_in_state; member 35 stats->time_in_state[stats->last_index] += cur_time - time; in cpufreq_stats_update() 43 memset(stats->time_in_state, 0, count * sizeof(u64)); in cpufreq_stats_reset_table() 90 time = stats->time_in_state[i]; in show_time_in_state() 100 cpufreq_freq_attr_ro(time_in_state); 175 &time_in_state.attr, 205 kfree(stats->time_in_state); in cpufreq_stats_free_table() 234 stats->time_in_state = kzalloc(alloc_size, GFP_KERNEL); in cpufreq_stats_create_table() 235 if (!stats->time_in_state) in cpufreq_stats_create_table() 238 stats->freq_table = (unsigned int *)(stats->time_in_state + count); in cpufreq_stats_create_table() [all …]
|
/drivers/thermal/ |
D | thermal_sysfs.c | 671 ktime_t *time_in_state; member 680 stats->time_in_state[stats->state] = in update_time_in_state() 681 ktime_add(stats->time_in_state[stats->state], delta); in update_time_in_state() 753 ktime_to_ms(stats->time_in_state[i])); in time_in_state_ms_show() 787 stats->time_in_state[i] = ktime_set(0, 0); in reset_store() 888 var += sizeof(*stats->time_in_state) * states; in cooling_device_stats_setup() 895 stats->time_in_state = (ktime_t *)(stats + 1); in cooling_device_stats_setup() 896 stats->trans_table = (unsigned int *)(stats->time_in_state + states); in cooling_device_stats_setup()
|
/drivers/devfreq/ |
D | devfreq.c | 234 devfreq->stats.time_in_state[prev_lev] += in devfreq_update_status() 906 devfreq->stats.time_in_state = devm_kcalloc(&devfreq->dev, in devfreq_add_device() 908 sizeof(*devfreq->stats.time_in_state), in devfreq_add_device() 910 if (!devfreq->stats.time_in_state) { in devfreq_add_device() 1764 jiffies64_to_msecs(df->stats.time_in_state[i])); in trans_stat_show() 1797 memset(df->stats.time_in_state, 0, (df->max_state * in trans_stat_store() 1798 sizeof(*df->stats.time_in_state))); in trans_stat_store()
|