remove no existing irq in banned_irqs
Signed-off-by: liweigang <liweiganga@uniontech.com>
This commit is contained in:
parent
7a850d304b
commit
1c0ca5b002
40
backport-remove-no-existing-irq-in-banned_irqs.patch
Normal file
40
backport-remove-no-existing-irq-in-banned_irqs.patch
Normal file
@ -0,0 +1,40 @@
|
||||
From 066499ad5231a8a8d37f08a3af5dd6c38431ce6f Mon Sep 17 00:00:00 2001
|
||||
From: liuchao173 <55137861+liuchao173@users.noreply.github.com>
|
||||
Date: Fri, 7 May 2021 20:48:32 +0800
|
||||
Subject: [PATCH] remove no existing irq in banned_irqs
|
||||
|
||||
when a banned irq doesn't exist, it won't be removed from banned_irqs
|
||||
---
|
||||
classify.c | 11 +++++++++--
|
||||
1 file changed, 9 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/classify.c b/classify.c
|
||||
index 105ecd6..c08144f 100644
|
||||
--- a/classify.c
|
||||
+++ b/classify.c
|
||||
@@ -847,8 +847,16 @@ static void remove_no_existing_irq(struct irq_info *info, void *data __attribute
|
||||
}
|
||||
|
||||
entry = g_list_find_custom(interrupts_db, info, compare_ints);
|
||||
- if (entry)
|
||||
+ if (entry) {
|
||||
interrupts_db = g_list_delete_link(interrupts_db, entry);
|
||||
+ log(TO_CONSOLE, LOG_INFO, "IRQ %d is removed from interrupts_db.\n", info->irq);
|
||||
+ }
|
||||
+
|
||||
+ entry = g_list_find_custom(banned_irqs, info, compare_ints);
|
||||
+ if (entry) {
|
||||
+ banned_irqs = g_list_delete_link(banned_irqs, entry);
|
||||
+ log(TO_CONSOLE, LOG_INFO, "IRQ %d is removed from banned_irqs.\n", info->irq);
|
||||
+ }
|
||||
|
||||
entry = g_list_find_custom(rebalance_irq_list, info, compare_ints);
|
||||
if (entry)
|
||||
@@ -860,7 +868,6 @@ static void remove_no_existing_irq(struct irq_info *info, void *data __attribute
|
||||
info->assigned_obj->interrupts = g_list_delete_link(info->assigned_obj->interrupts, entry);
|
||||
}
|
||||
}
|
||||
- log(TO_CONSOLE, LOG_INFO, "IRQ %d is removed from interrupts_db.\n", info->irq);
|
||||
free_irq(info, NULL);
|
||||
}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
Summary: A dynamic adaptive IRQ balancing daemon
|
||||
Name: irqbalance
|
||||
Version: 1.8.0
|
||||
Release: 10
|
||||
Release: 11
|
||||
Epoch: 3
|
||||
License: GPLv2
|
||||
Source0: https://github.com/Irqbalance/irqbalance/archive/v%{version}.tar.gz#/irqbalance-%{version}.tar.gz
|
||||
@ -34,6 +34,7 @@ Patch6009: backport-0002-activate_mapping-make-sure-to-catch-all-errors.patch
|
||||
Patch6010: backport-0003-activate_mapping-report-error-reason.patch
|
||||
Patch6011: backport-0004-activate_mapping-only-blacklist-irq-if-error-is-cons.patch
|
||||
Patch6012: backport-0005-activate_mapping-avoid-logging-error-when-there-is-n.patch
|
||||
Patch6013: backport-remove-no-existing-irq-in-banned_irqs.patch
|
||||
|
||||
%description
|
||||
Irqbalance is a daemon to help balance the cpu load generated by
|
||||
@ -91,6 +92,12 @@ fi
|
||||
/sbin/chkconfig --del %{name} >/dev/null 2>&1 || :
|
||||
|
||||
%changelog
|
||||
* Sun Feb 04 2024 Paul Thomas <paulthomas100199@gmail.com> - 3:1.8.0-11
|
||||
- Type:bugfix
|
||||
- ID:NA
|
||||
- SUG:restart
|
||||
- DESC: remove no existing irq in banned_irqs
|
||||
|
||||
* Sun Oct 29 2023 volcanodragon <linfeilong@huawei.com> - 3:1.8.0-10
|
||||
- Type:bugfix
|
||||
- ID:NA
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user