Skip to content

Instantly share code, notes, and snippets.

@kekh
Last active October 23, 2016 21:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kekh/e671e4851e2394e425a184d7165dfa69 to your computer and use it in GitHub Desktop.
Save kekh/e671e4851e2394e425a184d7165dfa69 to your computer and use it in GitHub Desktop.
--- 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