Lines Matching refs:idle_time
75 struct time_in_idle *idle_time; member
152 struct time_in_idle *idle_time = &cpufreq_cdev->idle_time[cpu_idx]; in get_load() local
155 delta_idle = now_idle - idle_time->time; in get_load()
156 delta_time = now - idle_time->timestamp; in get_load()
163 idle_time->time = now_idle; in get_load()
164 idle_time->timestamp = now; in get_load()
368 cpufreq_cdev->idle_time = kcalloc(num_cpus, in allocate_idle_time()
369 sizeof(*cpufreq_cdev->idle_time), in allocate_idle_time()
371 if (!cpufreq_cdev->idle_time) in allocate_idle_time()
379 kfree(cpufreq_cdev->idle_time); in free_idle_time()
380 cpufreq_cdev->idle_time = NULL; in free_idle_time()