All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] MIPS: EARLY_PRINTK: Fixup of dependency
@ 2009-11-24  9:33 Wu Zhangjin
  2009-11-24 16:24 ` Manuel Lauss
  0 siblings, 1 reply; 6+ messages in thread
From: Wu Zhangjin @ 2009-11-24  9:33 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: Linux-MIPS, Wu Zhangjin

From: Wu Zhangjin <wuzhangjin@gmail.com>

In the old version, if the platform select SYS_HAS_EARLY_PRINTK and
users not select DEBUG_KERNEL, there is no interface for user to enable
or disable the EARLY_PRINTK option, it will be enabled all the time.
this will waste a little bit of memory and slow down the booting of
kernel but the users never know it.

This patch will only enable that option when the DEBUG_KERNEL is
enabled.

Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
---
 arch/mips/Kconfig |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index b342197..d2446d5 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -824,8 +824,8 @@ config DMA_NEED_PCI_MAP_STATE
 	bool
 
 config EARLY_PRINTK
-	bool "Early printk" if EMBEDDED && DEBUG_KERNEL
-	depends on SYS_HAS_EARLY_PRINTK
+	bool "Early printk" if EMBEDDED
+	depends on SYS_HAS_EARLY_PRINTK && DEBUG_KERNEL
 	default y
 	help
 	  This option enables special console drivers which allow the kernel
-- 
1.6.2.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-11-25 16:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-24  9:33 [PATCH] MIPS: EARLY_PRINTK: Fixup of dependency Wu Zhangjin
2009-11-24 16:24 ` Manuel Lauss
2009-11-24 16:30   ` Ralf Baechle
2009-11-25 14:42     ` Kevin Hickey
2009-11-25 16:15       ` Wu Zhangjin
2009-11-25 16:19         ` Ralf Baechle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.