aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2023-03-28 15:29:19 -0700
committerHauke Mehrtens <hauke@hauke-m.de>2023-04-01 21:56:28 +0200
commit37dbe302158c7c567835ed64c118236dfc0425b2 (patch)
tree4594645568568165025a2ad74f1a403dda7b44dc /target/linux/ramips
parent787ecdf66de6798540fb8b756404566341b4733c (diff)
downloadupstream-37dbe302158c7c567835ed64c118236dfc0425b2.tar.gz
upstream-37dbe302158c7c567835ed64c118236dfc0425b2.tar.bz2
upstream-37dbe302158c7c567835ed64c118236dfc0425b2.zip
ramips: mt7621: remove set-affinity script
From https://github.com/openwrt/openwrt/pull/12280#issuecomment-1489279860 On Ethernet and WLAN, NAPI is threaded for all queues. This means that the processing work is not stuck on the CPU that fired the IRQ. Under heavy load, IRQs get disabled anyway, so it should not matter at all which CPUs the IRQs fire on. Basic testing indicates this to be true. There's no speedup or slowdown. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'target/linux/ramips')
-rwxr-xr-xtarget/linux/ramips/mt7621/base-files/etc/init.d/set-irq-affinity19
1 files changed, 0 insertions, 19 deletions
diff --git a/target/linux/ramips/mt7621/base-files/etc/init.d/set-irq-affinity b/target/linux/ramips/mt7621/base-files/etc/init.d/set-irq-affinity
deleted file mode 100755
index c118d928a7..0000000000
--- a/target/linux/ramips/mt7621/base-files/etc/init.d/set-irq-affinity
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/sh /etc/rc.common
-
-START=99
-
-start() {
- if grep -q 'processor.*: 2' /proc/cpuinfo; then
- mask=4
- elif grep -q 'processor.*: 1' /proc/cpuinfo; then
- mask=2
- else
- return
- fi
-
- for irq in $(grep "mt76..e" /proc/interrupts | cut -d: -f1 | sed 's, *,,')
- do
- echo "$mask" > "/proc/irq/$irq/smp_affinity"
- [ $mask = 4 ] && mask=8
- done
-}