30 lines
1014 B
Diff
30 lines
1014 B
Diff
From 73c26ac2d6e856c5a9ffd1c48ed7c1abc85de3df Mon Sep 17 00:00:00 2001
|
|
From: liuchao <liuchao173@huawei.com>
|
|
Date: Sat, 12 Oct 2019 03:34:44 +0000
|
|
Subject: [PATCH] irqbalance: change irq ban check path to devpath
|
|
|
|
keep the parameters 'path' of check_for_irq_ban function consistent with line 699.
|
|
In check_for_irq_ban,
|
|
sprintf(cmd, "%s %s %d > /dev/null",banscript, path, irq);
|
|
the banscript is unique, so the path should keep consistent.
|
|
---
|
|
classify.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/classify.c b/classify.c
|
|
index 7c97d47..3681c48 100644
|
|
--- a/classify.c
|
|
+++ b/classify.c
|
|
@@ -719,7 +719,7 @@ struct irq_info *build_one_dev_entry(const char *dirname, GList *tmp_list)
|
|
if (new)
|
|
goto done;
|
|
get_irq_user_policy(devpath, irqnum, &pol);
|
|
- if ((pol.ban == 1) || (check_for_irq_ban(path, irqnum, tmp_irqs))) {
|
|
+ if ((pol.ban == 1) || (check_for_irq_ban(devpath, irqnum, tmp_irqs))) {
|
|
add_banned_irq(irqnum, &banned_irqs);
|
|
goto done;
|
|
}
|
|
--
|
|
2.19.1
|
|
|