Home | History | Annotate | Download | only in power

Lines Matching refs:cpu

35 #define BOOST_PATH      "/sys/devices/system/cpu/cpufreq/interactive/boost"
43 #define UEVENT_STRING "online@/devices/system/cpu/"
50 "/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq",
51 "/sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq",
52 "/sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq",
53 "/sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq",
56 "/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq",
57 "/sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq",
58 "/sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq",
59 "/sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq",
92 int n, cpu, ret, retry = RETRY_TIME_CHANGING_FREQ;
107 cpu = strtol(cp + n - 1, NULL, 10);
109 if (errno == EINVAL || errno == ERANGE || cpu < 0 || cpu >= TOTAL_CPUS) {
114 if (low_power_mode && !freq_set[cpu]) {
116 sysfs_write(cpu_path_min[cpu], LOW_POWER_MIN_FREQ);
117 ret = sysfs_write(cpu_path_max[cpu], LOW_POWER_MAX_FREQ);
119 freq_set[cpu] = true;
125 } else if (!low_power_mode && freq_set[cpu]) {
127 ret = sysfs_write(cpu_path_max[cpu], NORMAL_MAX_FREQ);
129 freq_set[cpu] = false;
189 sysfs_write("/sys/devices/system/cpu/cpufreq/interactive/timer_rate",
191 sysfs_write("/sys/devices/system/cpu/cpufreq/interactive/min_sample_time",
193 sysfs_write("/sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load",
195 sysfs_write("/sys/devices/system/cpu/cpufreq/interactive/boost_factor",
197 sysfs_write("/sys/devices/system/cpu/cpufreq/interactive/input_boost",
206 sysfs_write("/sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load", "75");
207 sysfs_write("/sys/devices/system/cpu/cpufreq/interactive/core_lock_period", "3000000");
208 sysfs_write("/sys/devices/system/cpu/cpufreq/interactive/core_lock_count", "2");
209 sysfs_write("/sys/devices/system/cpu/cpufreq/interactive/input_boost", "1");
212 sysfs_write("/sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load", "85");
213 sysfs_write("/sys/devices/system/cpu/cpufreq/interactive/core_lock_period", "200000");
214 sysfs_write("/sys/devices/system/cpu/cpufreq/interactive/core_lock_count", "0");
215 sysfs_write("/sys/devices/system/cpu/cpufreq/interactive/input_boost", "0");
223 int len, cpu, ret;
233 for (cpu = 0; cpu < TOTAL_CPUS; cpu++) {
234 sysfs_write(cpu_path_min[cpu], LOW_POWER_MIN_FREQ);
235 ret = sysfs_write(cpu_path_max[cpu], LOW_POWER_MAX_FREQ);
237 freq_set[cpu] = true;
242 for (cpu = 0; cpu < TOTAL_CPUS; cpu++) {
243 ret = sysfs_write(cpu_path_max[cpu], NORMAL_MAX_FREQ);
245 freq_set[cpu] = false;