Home
last modified time | relevance | path

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

/external/ltp/testcases/kernel/device-drivers/cpufreq/
Dcpufreq_boost.c50 static const struct cpufreq_driver_info cdrv[] = { variable
81 FILE_PRINTF(cdrv[id].file, "%d", boost_value); in cleanup()
93 for (i = 0; i < ARRAY_SIZE(cdrv); ++i) { in setup()
94 fd = open(cdrv[i].file, O_RDWR); in setup()
107 cdrv[id].name, cdrv[id].file); in setup()
111 SAFE_FILE_SCANF(NULL, cdrv[i].file, "%d", &boost_value); in setup()
117 if (!strcmp(cdrv[i].name, "intel_pstate") && boost_value == cdrv[i].off) in setup()
118 check_set_turbo(cdrv[i].file, cdrv[i].off_str); in setup()
174 if (boost_value == cdrv[id].off) in test_run()
175 SAFE_FILE_PRINTF(cleanup, cdrv[id].file, "%s", cdrv[id].on_str); in test_run()
[all …]