Skip to content

Commit

Permalink
Stick to the high performance cores
Browse files Browse the repository at this point in the history
  • Loading branch information
crschardt committed Aug 18, 2024
1 parent f0263b8 commit b51b817
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ if [ "$DISABLE_NETWORKING" = "true" ]; then
fi

if [[ -n $(cat /proc/cpuinfo | grep "RK3588") ]]; then
echo "This has a Rockchip RK3588, enabling all cores"
sed -i 's/# AllowedCPUs=4-7/AllowedCPUs=0-7/g' /lib/systemd/system/photonvision.service
echo "This has a Rockchip RK3588, enabling high A76 cores"
sed -i 's/# AllowedCPUs=4-7/AllowedCPUs=4-7/g' /lib/systemd/system/photonvision.service
fi

cp /lib/systemd/system/photonvision.service /etc/systemd/system/photonvision.service
Expand Down

0 comments on commit b51b817

Please sign in to comment.