Skip to content

Commit

Permalink
scripts: Fix wrong path for CPU Bus and DDR available_frequencies
Browse files Browse the repository at this point in the history
* Need more coffee I guess

Signed-off-by: Rem01Gaming <Rem01_Gaming@proton.me>
  • Loading branch information
Rem01Gaming committed Oct 24, 2024
1 parent 86a8284 commit 76c2ca0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions src/scripts/encore-normal
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ elif [ $soc -eq 2 ]; then
done &

if [ -d /sys/devices/system/cpu/bus_dcvs/LLCC ]; then
max_freq=$(cat /sys/devices/system/cpu/bus_dcvs/LLCC/available_frequencies/available_frequencies | tr ' ' '\n' | sort -nr | head -n 1)
min_freq=$(cat /sys/devices/system/cpu/bus_dcvs/LLCC/available_frequencies/available_frequencies | tr ' ' '\n' | sort -n | head -n 1)
max_freq=$(cat /sys/devices/system/cpu/bus_dcvs/LLCC/available_frequencies | tr ' ' '\n' | sort -nr | head -n 1)
min_freq=$(cat /sys/devices/system/cpu/bus_dcvs/LLCC/available_frequencies | tr ' ' '\n' | sort -n | head -n 1)
for path in /sys/devices/system/cpu/bus_dcvs/LLCC/*/max_freq; do
apply $max_freq $path
done &
Expand All @@ -167,8 +167,8 @@ elif [ $soc -eq 2 ]; then
fi

if [ -d /sys/devices/system/cpu/bus_dcvs/L3 ]; then
max_freq=$(cat /sys/devices/system/cpu/bus_dcvs/L3/available_frequencies/available_frequencies | tr ' ' '\n' | sort -nr | head -n 1)
min_freq=$(cat /sys/devices/system/cpu/bus_dcvs/L3/available_frequencies/available_frequencies | tr ' ' '\n' | sort -n | head -n 1)
max_freq=$(cat /sys/devices/system/cpu/bus_dcvs/L3/available_frequencies | tr ' ' '\n' | sort -nr | head -n 1)
min_freq=$(cat /sys/devices/system/cpu/bus_dcvs/L3/available_frequencies | tr ' ' '\n' | sort -n | head -n 1)
for path in /sys/devices/system/cpu/bus_dcvs/L3/*/max_freq; do
apply $max_freq $path
done &
Expand All @@ -178,8 +178,8 @@ elif [ $soc -eq 2 ]; then
fi

if [ -d /sys/devices/system/cpu/bus_dcvs/DDR ]; then
max_freq=$(cat /sys/devices/system/cpu/bus_dcvs/DDR/available_frequencies/available_frequencies | tr ' ' '\n' | sort -nr | head -n 1)
min_freq=$(cat /sys/devices/system/cpu/bus_dcvs/DDR/available_frequencies/available_frequencies | tr ' ' '\n' | sort -n | head -n 1)
max_freq=$(cat /sys/devices/system/cpu/bus_dcvs/DDR/available_frequencies | tr ' ' '\n' | sort -nr | head -n 1)
min_freq=$(cat /sys/devices/system/cpu/bus_dcvs/DDR/available_frequencies | tr ' ' '\n' | sort -n | head -n 1)
for path in /sys/devices/system/cpu/bus_dcvs/DDR/*/max_freq; do
apply $max_freq $path
done &
Expand All @@ -189,8 +189,8 @@ elif [ $soc -eq 2 ]; then
fi

if [ -d /sys/devices/system/cpu/bus_dcvs/DDRQOS ]; then
max_freq=$(cat /sys/devices/system/cpu/bus_dcvs/DDRQOS/available_frequencies/available_frequencies | tr ' ' '\n' | sort -nr | head -n 1)
min_freq=$(cat /sys/devices/system/cpu/bus_dcvs/DDRQOS/available_frequencies/available_frequencies | tr ' ' '\n' | sort -n | head -n 1)
max_freq=$(cat /sys/devices/system/cpu/bus_dcvs/DDRQOS/available_frequencies | tr ' ' '\n' | sort -nr | head -n 1)
min_freq=$(cat /sys/devices/system/cpu/bus_dcvs/DDRQOS/available_frequencies | tr ' ' '\n' | sort -n | head -n 1)
for path in /sys/devices/system/cpu/bus_dcvs/DDRQOS/*/max_freq; do
apply $max_freq $path
done &
Expand Down
8 changes: 4 additions & 4 deletions src/scripts/encore-powersave
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ elif [ $soc -eq 2 ]; then
done &

if [ -d /sys/devices/system/cpu/bus_dcvs/LLCC ]; then
freq=$(cat /sys/devices/system/cpu/bus_dcvs/LLCC/available_frequencies/available_frequencies | tr ' ' '\n' | sort -n | head -n 1)
freq=$(cat /sys/devices/system/cpu/bus_dcvs/LLCC/available_frequencies | tr ' ' '\n' | sort -n | head -n 1)
for path in /sys/devices/system/cpu/bus_dcvs/LLCC/*/max_freq; do
apply $freq $path
done &
Expand All @@ -81,7 +81,7 @@ elif [ $soc -eq 2 ]; then
fi

if [ -d /sys/devices/system/cpu/bus_dcvs/L3 ]; then
freq=$(cat /sys/devices/system/cpu/bus_dcvs/L3/available_frequencies/available_frequencies | tr ' ' '\n' | sort -n | head -n 1)
freq=$(cat /sys/devices/system/cpu/bus_dcvs/L3/available_frequencies | tr ' ' '\n' | sort -n | head -n 1)
for path in /sys/devices/system/cpu/bus_dcvs/L3/*/max_freq; do
apply $freq $path
done &
Expand All @@ -91,7 +91,7 @@ elif [ $soc -eq 2 ]; then
fi

if [ -d /sys/devices/system/cpu/bus_dcvs/DDR ]; then
freq=$(cat /sys/devices/system/cpu/bus_dcvs/DDR/available_frequencies/available_frequencies | tr ' ' '\n' | sort -n | head -n 1)
freq=$(cat /sys/devices/system/cpu/bus_dcvs/DDR/available_frequencies | tr ' ' '\n' | sort -n | head -n 1)
for path in /sys/devices/system/cpu/bus_dcvs/DDR/*/max_freq; do
apply $freq $path
done &
Expand All @@ -101,7 +101,7 @@ elif [ $soc -eq 2 ]; then
fi

if [ -d /sys/devices/system/cpu/bus_dcvs/DDRQOS ]; then
freq=$(cat /sys/devices/system/cpu/bus_dcvs/DDRQOS/available_frequencies/available_frequencies | tr ' ' '\n' | sort -n | head -n 1)
freq=$(cat /sys/devices/system/cpu/bus_dcvs/DDRQOS/available_frequencies | tr ' ' '\n' | sort -n | head -n 1)
for path in /sys/devices/system/cpu/bus_dcvs/DDRQOS/*/max_freq; do
apply $freq $path
done &
Expand Down

0 comments on commit 76c2ca0

Please sign in to comment.