summaryrefslogtreecommitdiffstats
path: root/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils.c')
-rw-r--r--utils.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/utils.c b/utils.c
index db1637d..ec9d1e8 100644
--- a/utils.c
+++ b/utils.c
@@ -46,10 +46,10 @@
#define SOC_ID_0 "/sys/devices/soc0/soc_id"
#define SOC_ID_1 "/sys/devices/system/soc/soc0/id"
-char scaling_gov_path[4][80] = {"sys/devices/system/cpu/cpu0/cpufreq/scaling_governor",
- "sys/devices/system/cpu/cpu1/cpufreq/scaling_governor",
- "sys/devices/system/cpu/cpu2/cpufreq/scaling_governor",
- "sys/devices/system/cpu/cpu3/cpufreq/scaling_governor"};
+const char* scaling_gov_path[4] = {"/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor",
+ "/sys/devices/system/cpu/cpu1/cpufreq/scaling_governor",
+ "/sys/devices/system/cpu/cpu2/cpufreq/scaling_governor",
+ "/sys/devices/system/cpu/cpu3/cpufreq/scaling_governor"};
#define PERF_HAL_PATH "libqti-perfd-client.so"
static void* qcopt_handle;
@@ -117,7 +117,7 @@ static void __attribute__((destructor)) cleanup(void) {
}
}
-int sysfs_read(char* path, char* s, int num_bytes) {
+int sysfs_read(const char* path, char* s, int num_bytes) {
char buf[80];
int count;
int ret = 0;
@@ -144,7 +144,7 @@ int sysfs_read(char* path, char* s, int num_bytes) {
return ret;
}
-int sysfs_write(char* path, char* s) {
+int sysfs_write(const char* path, char* s) {
char buf[80];
int len;
int ret = 0;