31 lines
1.0 KiB
Diff
31 lines
1.0 KiB
Diff
From a8ad43cc682e268c9f35633a15636222b6933649 Mon Sep 17 00:00:00 2001
|
|
From:Xia Shuang <xiashuang1@huawei.com>
|
|
Date: Thu, 29 Aug 2019 14:31:25 +0800
|
|
Subject: [PATCH] fix guess_arm_irq_hints
|
|
|
|
in aarch64, irqbalance will guess
|
|
irq's class and type according to irq's name, but it did't work properly now,
|
|
a irq's name will be matched twice and class will always be IRQ_OTHER. such
|
|
as a nic interrupt, the debug log will be:
|
|
IRQ eth3-tx0 (109) guessed as class 5
|
|
IRQ eth3-tx0 (109) guessed as class 0
|
|
irq's class should be IRQ_GBETH but is IRQ_GBETH.
|
|
---
|
|
procinterrupts.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/procinterrupts.c b/procinterrupts.c
|
|
index 2088c58..3898b10 100644
|
|
--- a/procinterrupts.c
|
|
+++ b/procinterrupts.c
|
|
@@ -137,6 +137,7 @@ static void guess_arm_irq_hints(char *name, struct irq_info *info)
|
|
if (matches[i].refine_match)
|
|
matches[i].refine_match(name, info);
|
|
log(TO_ALL, LOG_DEBUG, "IRQ %s(%d) guessed as class %d\n", name, info->irq,info->class);
|
|
+ break;
|
|
}
|
|
}
|
|
|
|
--
|
|
2.21.0.windows.1
|