diff options
author | Lisa Nguyen <lisa.nguyen@linaro.org> | 2016-07-25 19:06:41 -0700 |
---|---|---|
committer | Lisa Nguyen <lisa.nguyen@linaro.org> | 2016-09-12 16:42:01 -0700 |
commit | 002f481f06b8aaa9b0cffdd56dea94f0b47978cd (patch) | |
tree | 6d058103f40f5808be6b0f7c7bae22a8f64f0790 | |
parent | 2af35faf462a7598684b810295c2cf3b9fc04272 (diff) |
functions: Increment index in store_scaling_maxfreq() function
In order to store the scaling frequencies for all cpus
properly, increment the index in the array.
Signed-off-by: Lisa Nguyen <lisa.nguyen@linaro.org>
-rw-r--r-- | include/functions.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/functions.sh b/include/functions.sh index 432cf0a..dacf936 100644 --- a/include/functions.sh +++ b/include/functions.sh @@ -625,7 +625,9 @@ store_scaling_maxfreq() { for cpu in $cpus; do scaling_freq_max_value=$(cat $CPU_PATH/$cpu/cpufreq/scaling_max_freq) eval $scaling_freq_array$index=$scaling_freq_max_value - eval echo $scaling_freq_array$index + eval export $scaling_freq_array$index + + index=$((index + 1)) done return 0 |