File kthreadprio_defaults-bnc633514.diff of Package ibmrtpkgs.15904

Subject: adjust kthread priorities
From: Mike Galbraith <mgalbraith@suse.de>
Date: 2010-09-23 05:39:37 UTC 

Signed-off-by: Mike Galbraith <mgalbraith@suse.de>
---
 set_kthread_prio/set_kthread_prio      |    4 ++++
 set_kthread_prio/set_kthread_prio.conf |   10 ++++++----
 2 files changed, 10 insertions(+), 4 deletions(-)

Index: ibmrtpkgs-2/set_kthread_prio/set_kthread_prio.conf
===================================================================
--- ibmrtpkgs-2.orig/set_kthread_prio/set_kthread_prio.conf
+++ ibmrtpkgs-2/set_kthread_prio/set_kthread_prio.conf
@@ -2,11 +2,13 @@ watchdog        -f	99
 migration	-f	99
 posix_cpu_timer -f      99
 IRQ_default	-f	95
+irq_default	-f	95
 sirq-hrtimer	-f	92
 sirq-net-tx	-f	90
 sirq-net-rx	-f	90
-sirq_default	-f	30
-rpciod          -f      91
-lockd           -f      91
-nfsd            -f      91
+sirq-rcu	-f	90
+sirq_default	-f	49
+rpciod          -f      49
+lockd           -f      49
+nfsd            -f      49
 default		-	-
Index: ibmrtpkgs-2/set_kthread_prio/set_kthread_prio
===================================================================
--- ibmrtpkgs-2.orig/set_kthread_prio/set_kthread_prio
+++ ibmrtpkgs-2/set_kthread_prio/set_kthread_prio
@@ -48,6 +48,10 @@ set_kthread_cmds () {
 				   "IRQ_default" in config) {
 				prio = config["IRQ_default"];
 				opts = confopts["IRQ_default"];
+			} else if (cmd ~ /^irq\// &&
+				   "irq_default" in config) {
+				prio = config["irq_default"];
+				opts = confopts["irq_default"];
 			} else if (cmd ~ /^sirq-/ &&
 				   "sirq_default" in config) {
 				prio = config["sirq_default"];
openSUSE Build Service is sponsored by