- x86-dont-print-out-smp-info-on-up-kernels.patch removed from -mm tree

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

 



The patch titled

     x86: don't print out SMP info on UP kernels.

has been removed from the -mm tree.  Its filename is

     x86-dont-print-out-smp-info-on-up-kernels.patch

This patch was dropped because it had testing failures

------------------------------------------------------
Subject: x86: don't print out SMP info on UP kernels.
From: Dave Jones <davej@xxxxxxxxxx>

On UP kernels, it's silly to print out info about SMP alternatives..

 SMP alternatives: switching to UP code
 Freeing SMP alternatives: 0k freed

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

 arch/i386/kernel/alternative.c |    6 ++++++
 arch/i386/kernel/module.c      |    4 ++++
 2 files changed, 10 insertions(+)

diff -puN arch/i386/kernel/alternative.c~x86-dont-print-out-smp-info-on-up-kernels arch/i386/kernel/alternative.c
--- a/arch/i386/kernel/alternative.c~x86-dont-print-out-smp-info-on-up-kernels
+++ a/arch/i386/kernel/alternative.c
@@ -168,6 +168,7 @@ void apply_alternatives(struct alt_instr
 	}
 }
 
+#ifdef CONFIG_SMP
 static void alternatives_smp_save(struct alt_instr *start, struct alt_instr *end)
 {
 	struct alt_instr *a;
@@ -327,6 +328,8 @@ void alternatives_smp_switch(int smp)
 	}
 	spin_unlock_irqrestore(&smp_alt, flags);
 }
+#endif
+
 
 void __init alternative_instructions(void)
 {
@@ -339,6 +342,8 @@ void __init alternative_instructions(voi
 	}
 	apply_alternatives(__alt_instructions, __alt_instructions_end);
 
+#ifdef CONFIG_SMP
+
 	/* switch to patch-once-at-boottime-only mode and free the
 	 * tables in case we know the number of CPUs will never ever
 	 * change */
@@ -370,4 +375,5 @@ void __init alternative_instructions(voi
 					    _text, _etext);
 		alternatives_smp_switch(0);
 	}
+#endif
 }
diff -puN arch/i386/kernel/module.c~x86-dont-print-out-smp-info-on-up-kernels arch/i386/kernel/module.c
--- a/arch/i386/kernel/module.c~x86-dont-print-out-smp-info-on-up-kernels
+++ a/arch/i386/kernel/module.c
@@ -125,6 +125,7 @@ int module_finalize(const Elf_Ehdr *hdr,
 		void *aseg = (void *)alt->sh_addr;
 		apply_alternatives(aseg, aseg + alt->sh_size);
 	}
+#ifdef CONFIG_SMP
 	if (locks && text) {
 		void *lseg = (void *)locks->sh_addr;
 		void *tseg = (void *)text->sh_addr;
@@ -132,10 +133,13 @@ int module_finalize(const Elf_Ehdr *hdr,
 					    lseg, lseg + locks->sh_size,
 					    tseg, tseg + text->sh_size);
 	}
+#endif
 	return 0;
 }
 
 void module_arch_cleanup(struct module *mod)
 {
+#ifdef CONFIG_SMP
 	alternatives_smp_module_del(mod);
+#endif
 }
_

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

origin.patch
git-agpgart.patch
remove-silly-messages-from-input-layer.patch
git-scsi-misc.patch
x86-dont-print-out-smp-info-on-up-kernels.patch
fix-oddball-boolean-logic-in-s390-netiucv.patch
s390-broken-null-test-in-claw-driver.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