Home
last modified time | relevance | path

Searched refs:cpufreq_device (Results 1 – 1 of 1) sorted by relevance

/linux-4.1.27/drivers/thermal/
Dcpu_cooling.c223 struct cpufreq_cooling_device *cpufreq_device = cdev->devdata; in cpufreq_get_max_state() local
225 *state = cpufreq_device->max_level; in cpufreq_get_max_state()
242 struct cpufreq_cooling_device *cpufreq_device = cdev->devdata; in cpufreq_get_cur_state() local
244 *state = cpufreq_device->cpufreq_state; in cpufreq_get_cur_state()
262 struct cpufreq_cooling_device *cpufreq_device = cdev->devdata; in cpufreq_set_cur_state() local
263 unsigned int cpu = cpumask_any(&cpufreq_device->allowed_cpus); in cpufreq_set_cur_state()
267 if (WARN_ON(state > cpufreq_device->max_level)) in cpufreq_set_cur_state()
271 if (cpufreq_device->cpufreq_state == state) in cpufreq_set_cur_state()
274 clip_freq = cpufreq_device->freq_table[state]; in cpufreq_set_cur_state()
275 cpufreq_device->cpufreq_state = state; in cpufreq_set_cur_state()
[all …]