summaryrefslogtreecommitdiffstats
path: root/firmware/target/hosted
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/hosted')
-rw-r--r--firmware/target/hosted/cpufreq-linux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/hosted/cpufreq-linux.c b/firmware/target/hosted/cpufreq-linux.c
index 55a0bf3292..d622cf1d74 100644
--- a/firmware/target/hosted/cpufreq-linux.c
+++ b/firmware/target/hosted/cpufreq-linux.c
@@ -60,7 +60,7 @@ void cpufreq_available_governors(char* governors, int governors_size, int cpu)
snprintf(available_governors_interface,
sizeof(available_governors_interface),
"/sys/devices/system/cpu/cpu%d/cpufreq/scaling_available_governors",
- cpu);
+ cpu & 0xFFFF);
FILE *f = open_read(available_governors_interface);
if(f == NULL)