|
@@ -7720,6 +7720,16 @@ early_initcall(migration_init);
|
|
|
|
|
|
#ifdef CONFIG_SCHED_DEBUG
|
|
#ifdef CONFIG_SCHED_DEBUG
|
|
|
|
|
|
|
|
+static __read_mostly int sched_domain_debug_enabled;
|
|
|
|
+
|
|
|
|
+static int __init sched_domain_debug_setup(char *str)
|
|
|
|
+{
|
|
|
|
+ sched_domain_debug_enabled = 1;
|
|
|
|
+
|
|
|
|
+ return 0;
|
|
|
|
+}
|
|
|
|
+early_param("sched_debug", sched_domain_debug_setup);
|
|
|
|
+
|
|
static int sched_domain_debug_one(struct sched_domain *sd, int cpu, int level,
|
|
static int sched_domain_debug_one(struct sched_domain *sd, int cpu, int level,
|
|
struct cpumask *groupmask)
|
|
struct cpumask *groupmask)
|
|
{
|
|
{
|
|
@@ -7806,6 +7816,9 @@ static void sched_domain_debug(struct sched_domain *sd, int cpu)
|
|
cpumask_var_t groupmask;
|
|
cpumask_var_t groupmask;
|
|
int level = 0;
|
|
int level = 0;
|
|
|
|
|
|
|
|
+ if (!sched_domain_debug_enabled)
|
|
|
|
+ return;
|
|
|
|
+
|
|
if (!sd) {
|
|
if (!sd) {
|
|
printk(KERN_DEBUG "CPU%d attaching NULL sched-domain.\n", cpu);
|
|
printk(KERN_DEBUG "CPU%d attaching NULL sched-domain.\n", cpu);
|
|
return;
|
|
return;
|