3 [ "$ACTION" = add
] ||
exit
8 local line
=$
(grep -m 1 "${device}\$" /proc
/interrupts
)
9 echo $
(echo ${line} |
sed 's/:.*//')
12 set_interface_core
() {
17 [ -z "${device}" ] && device
="$interface"
19 local irq
=$
(get_device_irq
"$device")
21 echo "${core_mask}" > /proc
/irq
/${irq}/smp_affinity
24 case "$(board_name)" in
25 friendlyarm
,nanopi-r2s
)
26 set_interface_core
2 "eth0"
27 set_interface_core
4 "eth1" "xhci-hcd:usb3"