ipq40xx: irq balance

(cherry picked from commit a728ecfc2a2a4d09ed6ec882c678d5017b331158)
This commit is contained in:
DENG Qingfang 2022-02-04 17:52:03 +08:00 committed by Tianling Shen
parent 9d6e3e6c02
commit e71effd407
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

@ -0,0 +1,20 @@
#!/bin/sh /etc/rc.common
START=99
start() {
local mask=4
for irq in $(grep -F ath10k_ahb /proc/interrupts | cut -d: -f1 | sed 's, *,,')
do
echo "$mask" > "/proc/irq/$irq/smp_affinity"
[ $mask = 4 ] && mask=8
done
mask=1
for irq in $(grep -F c080000.ethernet /proc/interrupts | cut -d: -f1 | sed 's, *,,')
do
echo "$mask" > "/proc/irq/$irq/smp_affinity"
mask=$((mask << 1))
[ $mask = 16 ] && mask=1
done
}