[irqbalance] [PATCH v2 5/5] irqbalance: better isolation of obsoleted --banscript code

  • From: Petr Holasek <pholasek@xxxxxxxxxx>
  • To: irqbalance@xxxxxxxxxxxxx
  • Date: Thu, 19 Mar 2015 14:58:37 +0100

Signed-off-by: Petr Holasek <pholasek@xxxxxxxxxx>
---
 classify.c | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/classify.c b/classify.c
index 5a16dc2..e780136 100644
--- a/classify.c
+++ b/classify.c
@@ -537,6 +537,17 @@ static int check_for_irq_ban(char *path, int irq)
        if (entry)
                return 1;
 
+       /*
+        * Check to see if we banned module which the irq belongs to.
+        */
+       entry = g_list_find_custom(proc_interrupts, &find, compare_ints);
+       if (entry) {
+               res = entry->data;
+               if (check_for_module_ban(res->name))
+                       return 1;
+       }
+
+#ifdef INCLUDE_BANSCRIPT
        if (!banscript)
                return 0;
 
@@ -562,8 +573,8 @@ static int check_for_irq_ban(char *path, int irq)
                log(TO_ALL, LOG_INFO, "irq %d is baned by %s\n", irq, 
banscript);
                return 1;
        }
+#endif
        return 0;
-
 }
 
 /*
-- 
2.1.0


Other related posts:

  • » [irqbalance] [PATCH v2 5/5] irqbalance: better isolation of obsoleted --banscript code - Petr Holasek