Blame SOURCES/irqbalance-1.5.0-Update-document-and-remove-dead-options.patch

03926f
From 5f8ed87f36381569725c67445f12226f41861d1f Mon Sep 17 00:00:00 2001
03926f
From: Kairui Song <kasong@redhat.com>
03926f
Date: Fri, 9 Nov 2018 11:36:12 +0800
03926f
Subject: [PATCH] Update document and remove dead options
03926f
03926f
This is the stash of following three commits:
03926f
03926f
commit ea743009f69ad4800c60bf26c776ef4944c6af8b
03926f
Author: Kairui Song <kasong@redhat.com>
03926f
Date:   Mon Mar 25 19:58:58 2019 +0800
03926f
03926f
    Remove a duplicated word in manpage
03926f
03926f
    Just noticed a warning in a manpage scan report, trivial but let's
03926f
    fix it.
03926f
03926f
    Signed-off-by: Kairui Song <kasong@redhat.com>
03926f
03926f
commit 0b95593b19ff13e7e271d5b0b8219e7c70bf773c
03926f
Author: Kairui Song <kasong@redhat.com>
03926f
Date:   Fri Nov 9 12:26:29 2018 +0800
03926f
03926f
    Update document for option --banmod and --deepestcache
03926f
03926f
    '--banmod' is not documented, and '--deepestcache's alias '-c' is
03926f
    missing.
03926f
03926f
    Also fix an typo.
03926f
03926f
    Signed-off-by: Kairui Song <kasong@redhat.com>
03926f
03926f
commit 3ae01f5bd5ef3ed3080c9b06fc63bb02cc03bf1a
03926f
Author: Kairui Song <kasong@redhat.com>
03926f
Date:   Fri Nov 9 11:36:12 2018 +0800
03926f
03926f
    Remove hintpolicy related options in help message
03926f
03926f
    hintpolicy was dropped sometime ago so related help message should be
03926f
    dropped as well.
03926f
03926f
    Signed-off-by: Kairui Song <kasong@redhat.com>
03926f
03926f
Signed-off-by: Kairui Song <kasong@redhat.com>
03926f
---
03926f
 irqbalance.1 | 15 ++++++++++++---
03926f
 irqbalance.c |  3 +--
03926f
 2 files changed, 13 insertions(+), 5 deletions(-)
03926f
03926f
diff --git a/irqbalance.1 b/irqbalance.1
03926f
index 68e3cf8..61ae35e 100644
03926f
--- a/irqbalance.1
03926f
+++ b/irqbalance.1
03926f
@@ -62,12 +62,21 @@ in an effort to prevent that CPU from waking up without need.
03926f
 .B -i, --banirq=<irqnum>
03926f
 Add the specified IRQ to the set of banned IRQs. irqbalance will not affect
03926f
 the affinity of any IRQs on the banned list, allowing them to be specified
03926f
-manually.  This option is addative and can be specified multiple times. For
03926f
+manually.  This option is additive and can be specified multiple times. For
03926f
 example to ban IRQs 43 and 44 from balancing, use the following command line:
03926f
 .B irqbalance --banirq=43 --banirq=44
03926f
 
03926f
 .TP
03926f
-.B --deepestcache=<integer>
03926f
+.B -m, --banmod=<module_name>
03926f
+Add the specified module to the set of banned modules, similiar to --banirq.
03926f
+irqbalance will not affect the affinity of any IRQs of given modules, allowing
03926f
+them to be specified manually. This option is additive and can be specified
03926f
+multiple times. For example to ban all IRQs of module foo and module bar from
03926f
+balancing, use the following command line:
03926f
+.B irqbalance --banmod=foo --banmod=bar
03926f
+
03926f
+.TP
03926f
+.B -c, --deepestcache=<integer>
03926f
 This allows a user to specify the cache level at which irqbalance partitions
03926f
 cache domains.  Specifying a deeper cache may allow a greater degree of
03926f
 flexibility for irqbalance to assign IRQ affinity to achieve greater performance
03926f
@@ -148,7 +157,7 @@ each assigned IRQ type, it's number, load, number of IRQs since last rebalancing
03926f
 and it's class are sent. Refer to types.h file for explanation of defines.
03926f
 .TP
03926f
 .B setup
03926f
-Get the current value of sleep interval, mask of banned CPUs and and list of banned IRQs.
03926f
+Get the current value of sleep interval, mask of banned CPUs and list of banned IRQs.
03926f
 .TP
03926f
 .B settings sleep <s>
03926f
 Set new value of sleep interval, <s> >= 1.
03926f
diff --git a/irqbalance.c b/irqbalance.c
03926f
index 6412447..7713cd0 100644
03926f
--- a/irqbalance.c
03926f
+++ b/irqbalance.c
03926f
@@ -84,7 +84,6 @@ struct option lopts[] = {
03926f
 	{"oneshot", 0, NULL, 'o'},
03926f
 	{"debug", 0, NULL, 'd'},
03926f
 	{"foreground", 0, NULL, 'f'},
03926f
-	{"hintpolicy", 1, NULL, 'h'},
03926f
 	{"powerthresh", 1, NULL, 'p'},
03926f
 	{"banirq", 1 , NULL, 'i'},
03926f
 	{"banscript", 1, NULL, 'b'},
03926f
@@ -100,7 +99,7 @@ struct option lopts[] = {
03926f
 
03926f
 static void usage(void)
03926f
 {
03926f
-	log(TO_CONSOLE, LOG_INFO, "irqbalance [--oneshot | -o] [--debug | -d] [--foreground | -f] [--journal | -j] [--hintpolicy= | -h [exact|subset|ignore]]\n");
03926f
+	log(TO_CONSOLE, LOG_INFO, "irqbalance [--oneshot | -o] [--debug | -d] [--foreground | -f] [--journal | -j]\n");
03926f
 	log(TO_CONSOLE, LOG_INFO, "	[--powerthresh= | -p <off> | <n>] [--banirq= | -i <n>] [--banmod= | -m <module>] [--policyscript= | -l <script>]\n");
03926f
 	log(TO_CONSOLE, LOG_INFO, "	[--pid= | -s <file>] [--deepestcache= | -c <n>] [--interval= | -t <n>]\n");
03926f
 }
03926f
-- 
03926f
2.20.1
03926f