feat: CPU pinning on Rockchip Orange Pi 4

This commit is contained in:
Kroese 2024-06-02 20:50:21 +02:00 committed by GitHub
parent 72c7b91bca
commit 88affd83b3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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