/external/linux-kselftest/tools/testing/selftests/cpufreq/ |
governor.sh | 18 # Find governor's directory path 19 # $1: policy, $2: governor 42 printf "Governor backup done for $1: $CUR_GOV\n" 46 printf "Governor frequency backup done for $1: $CUR_FREQ\n" 57 printf "Governor restored for $1 to $CUR_GOV\n" 61 printf "Governor frequency restored for $1: $CUR_FREQ\n" 68 # $1: policy, $2: governor 75 # $1: cpu, $2: governor 83 # $1: cpu, $2: governor 88 # check if governor is availabl [all...] |
Makefile | 4 TEST_FILES := cpu.sh cpufreq.sh governor.sh module.sh special-tests.sh
|
module.sh | 14 source governor.sh 107 # find governor name based on governor module name 108 # $1: governor module name 126 # $1: governor string, $2: governor module, $3: policy 134 # switch to new governor 138 # try removing module, it should fail as governor is used 142 printf "WARN: rmmod $2 succeeded even if governor is used\n" 148 # switch back to old governor [all...] |
main.sh | 5 source governor.sh 23 modtest: test driver or governor modules. Only to be used with -d or -g options, 24 sptest1: Simple governor switch to produce lockdep. 25 sptest2: Concurrent governor switch to produce lockdep. 26 sptest3: Governor races, shuffle between governors quickly. 29 [-g <governor's module name: only with \"-t modtest>\"] 87 g) # --governor-mod-name (Name of the governor module) 124 echo "No driver or governor module passed with -d or -g"
|
/device/huawei/angler/power/ |
power-8992.c | 54 char governor[80]; local 57 if (get_scaling_governor(governor, sizeof(governor)) == -1) { 58 ALOGE("Can't obtain scaling governor."); 79 if ((strncmp(governor, INTERACTIVE_GOVERNOR, strlen(INTERACTIVE_GOVERNOR)) == 0) && 80 (strlen(governor) == strlen(INTERACTIVE_GOVERNOR))) { 92 if ((strncmp(governor, INTERACTIVE_GOVERNOR, strlen(INTERACTIVE_GOVERNOR)) == 0) && 93 (strlen(governor) == strlen(INTERACTIVE_GOVERNOR))) { 117 char governor[80]; local 119 if (get_scaling_governor(governor, sizeof(governor)) == -1) [all...] |
power-8994.c | 100 char governor[80]; local 103 if (get_scaling_governor(governor, sizeof(governor)) == -1) { 104 ALOGE("Can't obtain scaling governor."); 125 if ((strncmp(governor, INTERACTIVE_GOVERNOR, strlen(INTERACTIVE_GOVERNOR)) == 0) && 126 (strlen(governor) == strlen(INTERACTIVE_GOVERNOR))) { 149 if ((strncmp(governor, INTERACTIVE_GOVERNOR, strlen(INTERACTIVE_GOVERNOR)) == 0) && 150 (strlen(governor) == strlen(INTERACTIVE_GOVERNOR))) { 179 char governor[80]; local 181 if (get_scaling_governor(governor, sizeof(governor)) == -1) [all...] |
power.c | 126 char governor[80]; local 129 if (get_scaling_governor(governor, sizeof(governor)) == -1) { 130 ALOGE("Can't obtain scaling governor."); 155 if ((strncmp(governor, ONDEMAND_GOVERNOR, strlen(ONDEMAND_GOVERNOR)) == 0) && 156 (strlen(governor) == strlen(ONDEMAND_GOVERNOR))) { 161 } else if ((strncmp(governor, INTERACTIVE_GOVERNOR, strlen(INTERACTIVE_GOVERNOR)) == 0) && 162 (strlen(governor) == strlen(INTERACTIVE_GOVERNOR))) { 169 if ((strncmp(governor, ONDEMAND_GOVERNOR, strlen(ONDEMAND_GOVERNOR)) == 0) && 170 (strlen(governor) == strlen(ONDEMAND_GOVERNOR))) 180 char governor[80]; local 397 char governor[80]; local [all...] |
/device/lge/bullhead/power/ |
power-8994.c | 54 char governor[80]; local 57 if (get_scaling_governor(governor, sizeof(governor)) == -1) { 58 ALOGE("Can't obtain scaling governor."); 79 if ((strncmp(governor, INTERACTIVE_GOVERNOR, strlen(INTERACTIVE_GOVERNOR)) == 0) && 80 (strlen(governor) == strlen(INTERACTIVE_GOVERNOR))) { 92 if ((strncmp(governor, INTERACTIVE_GOVERNOR, strlen(INTERACTIVE_GOVERNOR)) == 0) && 93 (strlen(governor) == strlen(INTERACTIVE_GOVERNOR))) { 117 char governor[80]; local 119 if (get_scaling_governor(governor, sizeof(governor)) == -1) [all...] |
power-8992.c | 100 char governor[80]; local 103 if (get_scaling_governor(governor, sizeof(governor)) == -1) { 104 ALOGE("Can't obtain scaling governor."); 125 if ((strncmp(governor, INTERACTIVE_GOVERNOR, strlen(INTERACTIVE_GOVERNOR)) == 0) && 126 (strlen(governor) == strlen(INTERACTIVE_GOVERNOR))) { 149 if ((strncmp(governor, INTERACTIVE_GOVERNOR, strlen(INTERACTIVE_GOVERNOR)) == 0) && 150 (strlen(governor) == strlen(INTERACTIVE_GOVERNOR))) { 179 char governor[80]; local 181 if (get_scaling_governor(governor, sizeof(governor)) == -1) [all...] |
power.c | 120 char governor[80]; local 123 if (get_scaling_governor(governor, sizeof(governor)) == -1) { 124 ALOGE("Can't obtain scaling governor."); 149 if ((strncmp(governor, ONDEMAND_GOVERNOR, strlen(ONDEMAND_GOVERNOR)) == 0) && 150 (strlen(governor) == strlen(ONDEMAND_GOVERNOR))) { 155 } else if ((strncmp(governor, INTERACTIVE_GOVERNOR, strlen(INTERACTIVE_GOVERNOR)) == 0) && 156 (strlen(governor) == strlen(INTERACTIVE_GOVERNOR))) { 163 if ((strncmp(governor, ONDEMAND_GOVERNOR, strlen(ONDEMAND_GOVERNOR)) == 0) && 164 (strlen(governor) == strlen(ONDEMAND_GOVERNOR))) 174 char governor[80]; local 350 char governor[80]; local [all...] |
/external/devlib/devlib/module/ |
cpufreq.py | 20 # a dict of governor name and a list of it tunables that can't be read 62 """Returns the governor currently set for the specified CPU.""" 68 def set_governor(self, cpu, governor, **kwargs): 70 Set the governor for the specified CPU. 73 :param cpu: The CPU for which the governor is to be set. This must be 75 :param governor: The name of the governor to be used. This must be 78 Additional keyword arguments can be used to specify governor tunables for 81 :note: On big.LITTLE all cores in a cluster must be using the same governor. 82 Setting the governor on any core in a cluster will also set it on al [all...] |
biglittle.py | 94 def set_bigs_governor(self, governor, **kwargs): 95 self.target.cpufreq.set_governor(self.bigs_online[0], governor, **kwargs) 97 def set_bigs_governor_tunables(self, governor, **kwargs): 98 self.target.cpufreq.set_governor_tunables(self.bigs_online[0], governor, **kwargs) 109 def set_littles_governor(self, governor, **kwargs): 110 self.target.cpufreq.set_governor(self.littles_online[0], governor, **kwargs) 112 def set_littles_governor_tunables(self, governor, **kwargs): 113 self.target.cpufreq.set_governor_tunables(self.littles_online[0], governor, **kwargs)
|
/device/google/marlin/power/ |
power-8996.c | 59 char governor[80]; local 62 if (get_scaling_governor(governor, sizeof(governor)) == -1) { 63 ALOGE("Can't obtain scaling governor."); 84 if ((strncmp(governor, INTERACTIVE_GOVERNOR, strlen(INTERACTIVE_GOVERNOR)) == 0) && 85 (strlen(governor) == strlen(INTERACTIVE_GOVERNOR))) { 107 } else if ((strncmp(governor, SCHED_GOVERNOR, strlen(SCHED_GOVERNOR)) == 0) && 108 (strlen(governor) == strlen(SCHED_GOVERNOR))) { 123 if (((strncmp(governor, INTERACTIVE_GOVERNOR, strlen(INTERACTIVE_GOVERNOR)) == 0) && 124 (strlen(governor) == strlen(INTERACTIVE_GOVERNOR))) | 138 char governor[80]; local 171 char governor[80]; local 302 char governor[80]; local [all...] |
power-helper.c | 134 char governor[80]; local 137 if (get_scaling_governor(governor, sizeof(governor)) == -1) { 138 ALOGE("Can't obtain scaling governor."); 163 if ((strncmp(governor, ONDEMAND_GOVERNOR, strlen(ONDEMAND_GOVERNOR)) == 0) && 164 (strlen(governor) == strlen(ONDEMAND_GOVERNOR))) { 169 } else if ((strncmp(governor, INTERACTIVE_GOVERNOR, strlen(INTERACTIVE_GOVERNOR)) == 0) && 170 (strlen(governor) == strlen(INTERACTIVE_GOVERNOR))) { 177 if ((strncmp(governor, ONDEMAND_GOVERNOR, strlen(ONDEMAND_GOVERNOR)) == 0) && 178 (strlen(governor) == strlen(ONDEMAND_GOVERNOR))) 188 char governor[80]; local 409 char governor[80]; local 469 char governor[80]; local [all...] |
utils.c | 169 int get_scaling_governor(char governor[], int size) 171 if (sysfs_read(SCALING_GOVERNOR_PATH, governor, 173 // Can't obtain the scaling governor. Return. 177 int len = strlen(governor); 181 while (len >= 0 && (governor[len] == '\n' || governor[len] == '\r')) 182 governor[len--] = '\0'; 188 int get_scaling_governor_check_cores(char governor[], int size,int core_num) 191 if (sysfs_read(scaling_gov_path[core_num], governor, 193 // Can't obtain the scaling governor. Return [all...] |
/external/lisa/tests/benchmarks/ |
android_geekbench.py | 24 def __init__(self, governor, test): 25 self.governor = governor 30 # Create a results folder for each "governor/test" 31 self.out_dir = os.path.join(self.te.res_dir, governor) 43 self.target.cpufreq.set_all_governors(self.governor); 45 self._log.warning('Governor [%s] not available on target', 46 self.governor) 50 if self.governor == 'schedutil': 75 if self.governor == 'ondemand' [all...] |
android_gmaps.py | 24 def __init__(self, governor, location_search, swipe_count): 25 self.governor = governor 31 # Create a results folder for each "governor/test" 32 self.out_dir = os.path.join(self.te.res_dir, governor, 46 self.target.cpufreq.set_all_governors(self.governor); 48 self._log.warning('Governor [%s] not available on target', 49 self.governor) 53 if self.governor == 'schedutil': 78 if self.governor == 'ondemand' [all...] |
android_jankbench.py | 25 def __init__(self, governor, test, iterations): 26 self.governor = governor 32 # Create a results folder for each "governor/test" 33 self.out_dir = os.path.join(self.te.res_dir, governor, self.test) 46 self.target.cpufreq.set_all_governors(self.governor); 48 self._log.warning('Governor [%s] not available on target', 49 self.governor) 53 if self.governor == 'schedutil': 78 if self.governor == 'ondemand' [all...] |
android_uibench.py | 24 def __init__(self, governor, test, duration_s): 25 self.governor = governor 31 # Create a results folder for each "governor/test" 32 self.out_dir = os.path.join(self.te.res_dir, governor, self.test) 45 self.target.cpufreq.set_all_governors(self.governor); 47 self._log.warning('Governor [%s] not available on target', 48 self.governor) 52 if self.governor == 'schedutil': 77 if self.governor == 'ondemand' [all...] |
android_vellamo.py | 24 def __init__(self, governor, test): 25 self.governor = governor 30 # Create a results folder for each "governor/test" 31 self.out_dir = os.path.join(self.te.res_dir, governor, self.test) 43 self.target.cpufreq.set_all_governors(self.governor); 45 self._log.warning('Governor [%s] not available on target', 46 self.governor) 50 if self.governor == 'schedutil': 75 if self.governor == 'ondemand' [all...] |
android_youtube.py | 24 def __init__(self, governor, video_url, video_duration_s): 25 self.governor = governor 31 # Create a results folder for each "governor/test" 32 self.out_dir = os.path.join(self.te.res_dir, governor, 46 self.target.cpufreq.set_all_governors(self.governor); 48 self._log.warning('Governor [%s] not available on target', 49 self.governor) 53 if self.governor == 'schedutil': 78 if self.governor == 'ondemand' [all...] |
/external/chromium-trace/catapult/devil/devil/android/tools/ |
cpufreq.py | 26 p.SetScalingGovernor(args.governor) 31 for cpu, governor in p.GetScalingGovernor(): 32 print '%s %s: %s' % (str(device), cpu, governor) 48 help='Devices for which the governor should be set. Defaults to all.') 55 set_governor = subparsers.add_parser('set-governor') 57 'governor', 58 help='Desired CPU governor.') 61 get_governor = subparsers.add_parser('get-governor')
|
/device/google/wahoo/ |
init.power.sh | 19 write $cpubw/governor "bw_hwmon" 35 write /sys/class/devfreq/soc:qcom,mincpubw/governor "cpufreq" 37 # Enable memlat governor 40 write $memlat/governor "mem_latency"
|
/external/lisa/tests/stune/ |
smoke_test_ramp.config | 35 "cpufreq" : { "governor" : "sched" }, 50 "cpufreq" : { "governor" : "sched" }, 65 "cpufreq" : { "governor" : "sched" }, 80 "cpufreq" : { "governor" : "sched" },
|
/external/autotest/client/site_tests/power_CPUFreq/ |
power_CPUFreq.py | 58 raise error.TestError('userspace governor not supported') 68 # set cpufreq governor to userspace 93 raise error.TestError('userspace governor not supported') 99 # set cpufreq governor to userspace 168 governor = self.__read_file('scaling_governor') 169 logging.info('current governor: %s' % governor) 170 return governor.split()[0] 173 def set_governor(self, governor): 174 logging.info('setting governor to %s' % governor [all...] |