diff --git a/src/proc.sh b/src/proc.sh index 0b922fd..6a865ea 100644 --- a/src/proc.sh +++ b/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