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

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