Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
--- src/cpufreqd_governor_parameters.c
+++ src/cpufreqd_governor_parameters.c
@@ -61,7 +61,8 @@
struct sysfs_device *govdev = NULL;
/* Construct sysfs path string for governor device of this cpu */
- snprintf(govdev_path, SYSFS_PATH_MAX, "%s/cpu%u/cpufreq/%s", syspath_cpu, cpu, governor);
+ //snprintf(govdev_path, SYSFS_PATH_MAX, "%s/cpu%u/cpufreq/%s", syspath_cpu, cpu, governor);
+ snprintf(govdev_path, SYSFS_PATH_MAX, "%s/cpufreq/%s", syspath_cpu, governor);
clog(LOG_DEBUG, "sysfs path governor device = %s\n", govdev_path);
/* Open sysfs governor device */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.