feat: CPU pinning on Rockchip Orange Pi 4
This commit is contained in:
parent
72c7b91bca
commit
88affd83b3
1 changed files with 8 additions and 3 deletions
11
src/proc.sh
11
src/proc.sh
|
@ -9,9 +9,14 @@ set -Eeuo pipefail
|
|||
: "${CPU_MODEL:=""}"
|
||||
: "${DEF_MODEL:="neoverse-n1"}"
|
||||
|
||||
if [[ "$CPU" == "Cortex A55" ]] || [[ "${SYS,,}" == *"-rk35xx" ]]; then
|
||||
# Pin to big cores on Rockchip Orange Pi 5
|
||||
CPU_PIN="4,5,6,7"
|
||||
if [[ "$CPU" == "Cortex A53" ]] && [[ "$CORES" == "6" ]]; then
|
||||
# Pin to performance cores on Rockchip Orange Pi 4
|
||||
[ -z "$CPU_PIN" ] && CPU_PIN="4,5"
|
||||
fi
|
||||
|
||||
if [[ "$CPU" == "Cortex A55" ]] && [[ "$CORES" == "8" ]]; then
|
||||
# Pin to performance cores on Rockchip Orange Pi 5
|
||||
[ -z "$CPU_PIN" ] && CPU_PIN="4,5,6,7"
|
||||
fi
|
||||
|
||||
if [[ "${ARCH,,}" != "arm64" ]]; then
|
||||
|
|
Loading…
Reference in a new issue