From 343d4974b6037fd3beb08583a80d1334f9025b63 Mon Sep 17 00:00:00 2001 From: Packit Service Date: Dec 09 2020 17:29:19 +0000 Subject: Prepare for a new update Reverting patches so we can apply the latest update and changes can be seen in the spec file and sources. --- diff --git a/cputree.c b/cputree.c index e2541aa..d09af43 100644 --- a/cputree.c +++ b/cputree.c @@ -361,14 +361,9 @@ static void do_one_cpu(char *path) entry = readdir(dir); if (!entry) break; - if (strncmp(entry->d_name, "node", 4) == 0) { - char *end; - int num; - num = strtol(entry->d_name + 4, &end, 10); - if (!*end && num >= 0) { - nodeid = num; - break; - } + if (strstr(entry->d_name, "node")) { + nodeid = strtoul(&entry->d_name[4], NULL, 10); + break; } } while (entry); closedir(dir); diff --git a/irqbalance.1 b/irqbalance.1 index 61ae35e..68e3cf8 100644 --- a/irqbalance.1 +++ b/irqbalance.1 @@ -62,21 +62,12 @@ in an effort to prevent that CPU from waking up without need. .B -i, --banirq= Add the specified IRQ to the set of banned IRQs. irqbalance will not affect the affinity of any IRQs on the banned list, allowing them to be specified -manually. This option is additive and can be specified multiple times. For +manually. This option is addative and can be specified multiple times. For example to ban IRQs 43 and 44 from balancing, use the following command line: .B irqbalance --banirq=43 --banirq=44 .TP -.B -m, --banmod= -Add the specified module to the set of banned modules, similiar to --banirq. -irqbalance will not affect the affinity of any IRQs of given modules, allowing -them to be specified manually. This option is additive and can be specified -multiple times. For example to ban all IRQs of module foo and module bar from -balancing, use the following command line: -.B irqbalance --banmod=foo --banmod=bar - -.TP -.B -c, --deepestcache= +.B --deepestcache= This allows a user to specify the cache level at which irqbalance partitions cache domains. Specifying a deeper cache may allow a greater degree of flexibility for irqbalance to assign IRQ affinity to achieve greater performance @@ -157,7 +148,7 @@ each assigned IRQ type, it's number, load, number of IRQs since last rebalancing and it's class are sent. Refer to types.h file for explanation of defines. .TP .B setup -Get the current value of sleep interval, mask of banned CPUs and list of banned IRQs. +Get the current value of sleep interval, mask of banned CPUs and and list of banned IRQs. .TP .B settings sleep Set new value of sleep interval, >= 1. diff --git a/irqbalance.c b/irqbalance.c index 43ca2f6..6412447 100644 --- a/irqbalance.c +++ b/irqbalance.c @@ -84,6 +84,7 @@ struct option lopts[] = { {"oneshot", 0, NULL, 'o'}, {"debug", 0, NULL, 'd'}, {"foreground", 0, NULL, 'f'}, + {"hintpolicy", 1, NULL, 'h'}, {"powerthresh", 1, NULL, 'p'}, {"banirq", 1 , NULL, 'i'}, {"banscript", 1, NULL, 'b'}, @@ -99,7 +100,7 @@ struct option lopts[] = { static void usage(void) { - log(TO_CONSOLE, LOG_INFO, "irqbalance [--oneshot | -o] [--debug | -d] [--foreground | -f] [--journal | -j]\n"); + log(TO_CONSOLE, LOG_INFO, "irqbalance [--oneshot | -o] [--debug | -d] [--foreground | -f] [--journal | -j] [--hintpolicy= | -h [exact|subset|ignore]]\n"); log(TO_CONSOLE, LOG_INFO, " [--powerthresh= | -p | ] [--banirq= | -i ] [--banmod= | -m ] [--policyscript= | -l