Add ZeroPi IRQ balancing (#1976)

This commit is contained in:
xwiggen 2020-05-20 13:16:57 +02:00 committed by GitHub
parent 53e4bc2d38
commit 301414a71e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -251,9 +251,9 @@ prepare_board() {
echo 8 >/proc/irq/$i/smp_affinity
done
;;
"Beelink X2"|"Orange Pi R1")
"Beelink X2"|"Orange Pi R1"|"ZeroPi")
# Wifi module reload workaround / fix
[[ -n $(lsmod | grep 8189es) ]] && rmmod 8189es && modprobe 8189es
[[ -n $(lsmod | grep 8189es) && "${BOARD_NAME}" != "ZeroPi" ]] && rmmod 8189es && modprobe 8189es
# Send SDIO to cpu1, USB to cpu2, Ethernet to cpu3
for i in $(awk -F':' '/sunxi-mmc/{print $1}' </proc/interrupts | sed 's/\ //g'); do
echo 2 >/proc/irq/$i/smp_affinity