Ilias Apalodimas(apalos) replied on github web page:

platform/linux-generic/odp_system_info.c
line 18
@@ -326,6 +327,23 @@ int odp_system_info_init(void)
 
        fclose(file);
 
+       for (i = 0; i < MAX_CPU_NUMBER; i++) {
+               char temp[256], *endptr = NULL;
+               snprintf(temp, sizeof(temp),
+                        
"/sys/devices/system/cpu/cpu%d/cpufreq/cpuinfo_max_freq",
+                        i);
+
+               file = fopen(temp, "r");


Comment:
Don't use the same variable for 2 different things. 
It's not wrong but the next guy who tries to write something, after you, might 
easily get confused.

https://github.com/Linaro/odp/pull/171#discussion_r138174935
updated_at 2017-09-11 20:17:05

Reply via email to