Package: irqbalance / 1.5.0-3

fix-ftbs-on-hppa.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
diff -up ./activate.c.org ./activate.c
--- ./activate.c.org	2018-12-29 11:38:19.399024158 +0100
+++ ./activate.c	2018-12-29 11:49:51.929217483 +0100
@@ -88,6 +88,9 @@ static void activate_mapping(struct irq_
 	if (!file)
 		return;
 
+	/* mask only possible cpus, otherwise writing to procfs returns EOVERFLOW */
+	cpus_and(applied_mask, applied_mask, cpu_possible_map);
+
 	cpumask_scnprintf(buf, PATH_MAX, applied_mask);
 	fprintf(file, "%s", buf);
 	fclose(file);
diff -up ./classify.c.org ./classify.c
diff -up ./cputree.c.org ./cputree.c
--- ./cputree.c.org	2018-12-29 03:32:26.269546669 +0100
+++ ./cputree.c	2018-12-29 11:28:06.316150924 +0100
@@ -259,6 +259,10 @@ static void do_one_cpu(char *path)
 	/* skip offline cpus */
 	snprintf(new_path, ADJ_SIZE(path,"/online"), "%s/online", path);
 	file = fopen(new_path, "r");
+	if (!file) {
+		snprintf(new_path, ADJ_SIZE(path,"/hotplug/state"), "%s/hotplug/state", path);
+		file = fopen(new_path, "r");
+	}
 	if (file) {
 		char *line = NULL;
 		size_t size = 0;