[PATCH 7/8] SGI x86_64 UV: Limit the number of scheduler debug messages
From: Mike Travis
Date: Fri Oct 23 2009 - 19:38:13 EST
Limit number of sched debug messages while system is BOOTING.
Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
Cc: linux-kernel@xxxxxxxxxxxxxxx
Signed-off-by: Mike Travis <travis@xxxxxxx>
---
kernel/sched.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
--- linux.orig/kernel/sched.c
+++ linux/kernel/sched.c
@@ -8003,7 +8003,9 @@
sd->child = NULL;
}
- sched_domain_debug(sd, cpu);
+ if (cpu < 2 || system_state != SYSTEM_BOOTING ||
+ !limit_console_output(false))
+ sched_domain_debug(sd, cpu);
rq_attach_root(rq, rd);
rcu_assign_pointer(rq->sd, sd);
--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/