From 3791aab06d6e0c4bd1b6b4c5bb7e75eb241adb33 Mon Sep 17 00:00:00 2001 From: hanwckf Date: Sat, 13 Jan 2024 20:28:46 +0800 Subject: [PATCH] mtk-smp: check irq exist before set smp --- package/mtk/applications/mtk-smp/files/smp.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/mtk/applications/mtk-smp/files/smp.sh b/package/mtk/applications/mtk-smp/files/smp.sh index 5902638cfd..af610fe5d4 100755 --- a/package/mtk/applications/mtk-smp/files/smp.sh +++ b/package/mtk/applications/mtk-smp/files/smp.sh @@ -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