Skip to content

Commit

Permalink
Refactoring(maximize-cpu-freq): using find -name instead of egrep & s…
Browse files Browse the repository at this point in the history
…ort -V to get nice output
  • Loading branch information
strizhechenko committed Aug 28, 2022
1 parent 708957e commit db42e32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/maximize-cpu-freq
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ maximize_freq() {
main() {
local cpu
parse_params "$@"
for cpu in $(find /sys/devices/system/cpu/ -maxdepth 1 -type d | egrep 'cpu[0-9]+'); do
for cpu in $(find /sys/devices/system/cpu/ -maxdepth 1 -type d -name "cpu[0-9]*" | sort -V); do
set_governor_performance "$cpu"
maximize_freq "$cpu"
done
Expand Down

0 comments on commit db42e32

Please sign in to comment.