+ sched-dont-print-migration-cost-when-only-1-cpu.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     sched: don't print migration cost when only 1 CPU

has been added to the -mm tree.  Its filename is

     sched-dont-print-migration-cost-when-only-1-cpu.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: sched: don't print migration cost when only 1 CPU
From: Dave Jones <davej@xxxxxxxxxx>

If only a single CPU is present, printing this doesn't make much sense.

Signed-off-by: Dave Jones <davej@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---


diff -puN kernel/sched.c~sched-dont-print-migration-cost-when-only-1-cpu kernel/sched.c
--- a/kernel/sched.c~sched-dont-print-migration-cost-when-only-1-cpu
+++ a/kernel/sched.c
@@ -5933,13 +5933,15 @@ static void calibrate_migration_costs(co
 #endif
 		);
 	if (system_state == SYSTEM_BOOTING) {
-		printk("migration_cost=");
-		for (distance = 0; distance <= max_distance; distance++) {
-			if (distance)
-				printk(",");
-			printk("%ld", (long)migration_cost[distance] / 1000);
+		if (num_online_cpus() > 1) {
+			printk("migration_cost=");
+			for (distance = 0; distance <= max_distance; distance++) {
+				if (distance)
+					printk(",");
+				printk("%ld", (long)migration_cost[distance] / 1000);
+			}
+			printk("\n");
 		}
-		printk("\n");
 	}
 	j1 = jiffies;
 	if (migration_debug)
_

Patches currently in -mm which might be from davej@xxxxxxxxxx are

git-agpgart.patch
git-cpufreq.patch
remove-silly-messages-from-input-layer.patch
git-kbuild.patch
via-sata-oops-on-init.patch
tickle-nmi-watchdog-on-serial-output.patch
debug-variants-of-linked-list-macros.patch
tty_ioc-keep-davej-sane.patch
sched-dont-print-migration-cost-when-only-1-cpu.patch
fbcon-use-persistent-allocation-for-cursor-blinking.patch
post-halloween-doc.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux