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:40:13 -0700 |
commit | 11e42f48d20cd127855b953cab8f6ffa3c0abc7d (patch) | |
tree | 6d058103f40f5808be6b0f7c7bae22a8f64f0790 | |
parent | 6c4c27c206f54f14a3c9dd7544b3d900a0660bc8 (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 |