mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-07 01:53:34 +08:00
mtk-smp: check irq exist before set smp
This commit is contained in:
parent
b0c2ac27a3
commit
3791aab06d
@ -830,7 +830,7 @@ set_smp_affinity()
|
||||
cpu_bit=$((2 ** $num))
|
||||
virq=$(get_virtual_irq $i)
|
||||
dbg2 "irq p2v $i --> $virq"
|
||||
if [ ! -z $virq ]; then
|
||||
if [ ! -z $virq ] && [ -d /proc/irq/$virq ]; then
|
||||
dbg "echo $cpu_bit > /proc/irq/$virq/smp_affinity"
|
||||
echo $cpu_bit > /proc/irq/$virq/smp_affinity
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user