MIPS: Make EARLY_PRINTK selectable for !EMBEDDED
PATCH 1/1 MIPS: Make EARLY_PRINTK selectable for !EMBEDDED
From: Wu Zhangjin <[email protected]>
When EMBEDDED is disabled, the EARLY_PRINTK option will be hiden and we have no way to disable it.
For EARLY_PRINTK is not necessary for !EMBEDDED, we should make it selectable and only enable it by default for EMBEDDED.
--- arch/mips/Kconfig.debug | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
arch/mips/Kconfig.debug +2 -2
@@ -7,9 +7,9 @@ config TRACE_IRQFLAGS_SUPPORT source "lib/Kconfig.debug" config EARLY_PRINTK - bool "Early printk" if EMBEDDED + bool "Early printk" depends on SYS_HAS_EARLY_PRINTK - default y + default y if EMBEDDED help This option enables special console drivers which allow the kernel to print messages very early in the bootup process.
Signature · 1 line
1.7.1
Quoted 18 lines · On 09/21/2010 10:59 PM, [email protected] wrote:
From: Wu Zhangjin<[email protected]>
When EMBEDDED is disabled, the
EARLY_PRINTKoption will be hiden and we have no way to disable it.For
EARLY_PRINTKis not necessary for !EMBEDDED, we should make it selectable and only enable it by default for EMBEDDED.Signed-off-by Wu Zhangjin<[email protected]>--- arch/mips/Kconfig.debug | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)arch/mips/Kconfig.debug +0
-0
arch/mips/Kconfig.debug config TRACE_IRQFLAGS_SUPPORT · line 12
Quoted 8 lines
arch/mips/Kconfig.debug +2
-2@@ -7,9 +7,9 @@ config TRACE_IRQFLAGS_SUPPORT source "lib/Kconfig.debug" config EARLY_PRINTK - bool "Early printk" if EMBEDDED + bool "Early printk" depends on SYS_HAS_EARLY_PRINTK - default y + default y if EMBEDDED
I hate to be a pedant, but how about if we don't make it depend on EMBEDDED at all? I.E. just: 'default y'
If the system has SYS_HAS_EARLY_PRINTK, the overhead of enabling EARLY_PRINTK is low, although it may slow down booting. But it is really not at all related to EMBEDDED.
David Daney
Quoted 3 lines
arch/mips/Kconfig.debug +0
-0help This option enables special console drivers which allow the kernel to print messages very early in the bootup process.
Quoted 22 lines · David Daney
Quoted 21 lines · On 09/21/2010 10:59 PM, [email protected] wrote:
From: Wu Zhangjin<[email protected]>
When EMBEDDED is disabled, the
EARLY_PRINTKoption will be hiden and we have no way to disable it.For
EARLY_PRINTKis not necessary for !EMBEDDED, we should make it selectable and only enable it by default for EMBEDDED.Signed-off-by Wu Zhangjin<[email protected]>---
arch/mips/Kconfig.debug | 4 ++--1 files changed, 2 insertions(+), 2 deletions(-)arch/mips/Kconfig.debug +0
-0@@ -7,9 +7,9 @@ config TRACE_IRQFLAGS_SUPPORTsource "
lib/Kconfig.debug"
Quoted 9 lines
Quoted 6 lines
config
EARLY_PRINTK
- bool "Early printk" if EMBEDDED
+ bool "Early printk"
depends onSYS_HAS_EARLY_PRINTK
- default y
+ default y if EMBEDDEDI hate to be a pedant, but how about if we don't make it depend on EMBEDDED at all? I.E. just: 'default y'
That's what it was.
Quoted 3 lines
If the system has
SYS_HAS_EARLY_PRINTK, the overhead of enablingEARLY_PRINTKis low, although it may slow down booting. But it is really not at all related to EMBEDDED.
Originally, not the _value_ of EARLY_PRINTK depended on EMBEDDED, but the option to _change_ the value.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Quoted 31 lines · David Daney
Quoted 18 lines · On 09/21/2010 10:59 PM, [email protected] wrote:
From: Wu Zhangjin<[email protected]>
When EMBEDDED is disabled, the
EARLY_PRINTKoption will be hiden and we have no way to disable it.For
EARLY_PRINTKis not necessary for !EMBEDDED, we should make it selectable and only enable it by default for EMBEDDED.Signed-off-by Wu Zhangjin<[email protected]>--- arch/mips/Kconfig.debug | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)arch/mips/Kconfig.debug +0
-0arch/mips/Kconfig.debug config TRACE_IRQFLAGS_SUPPORT · line 12
Quoted 8 lines
arch/mips/Kconfig.debug +2
-2@@ -7,9 +7,9 @@ config TRACE_IRQFLAGS_SUPPORT source "lib/Kconfig.debug" config EARLY_PRINTK - bool "Early printk" if EMBEDDED + bool "Early printk" depends on SYS_HAS_EARLY_PRINTK - default y + default y if EMBEDDEDI hate to be a pedant, but how about if we don't make it depend on EMBEDDED at all? I.E. just: 'default y'
Quoted 3 lines
If the system has
SYS_HAS_EARLY_PRINTK, the overhead of enablingEARLY_PRINTKis low, although it may slow down booting. But it is really not at all related to EMBEDDED.
Yeah, we should remove this dependency eventually, will send a new revision later.
Thanks & Regards,
Wu Zhangjin
Quoted 9 lines
David Daney
Quoted 3 lines
arch/mips/Kconfig.debug +0
-0help This option enables special console drivers which allow the kernel to print messages very early in the bootup process.
Quoted 32 lines · wu zhangjin
Quoted 31 lines · David Daney
Quoted 18 lines · On 09/21/2010 10:59 PM, [email protected] wrote:
From: Wu Zhangjin<[email protected]>
When EMBEDDED is disabled, the
EARLY_PRINTKoption will be hiden and we have no way to disable it.For
EARLY_PRINTKis not necessary for !EMBEDDED, we should make it selectable and only enable it by default for EMBEDDED.Signed-off-by Wu Zhangjin<[email protected]>--- arch/mips/Kconfig.debug | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)arch/mips/Kconfig.debug +0
-0arch/mips/Kconfig.debug config TRACE_IRQFLAGS_SUPPORT · line 12
Quoted 8 lines
arch/mips/Kconfig.debug +2
-2@@ -7,9 +7,9 @@ config TRACE_IRQFLAGS_SUPPORT source "lib/Kconfig.debug" config EARLY_PRINTK - bool "Early printk" if EMBEDDED + bool "Early printk" depends on SYS_HAS_EARLY_PRINTK - default y + default y if EMBEDDEDI hate to be a pedant, but how about if we don't make it depend on EMBEDDED at all? I.E. just: 'default y'
Quoted 6 lines
Quoted 3 lines
If the system has
SYS_HAS_EARLY_PRINTK, the overhead of enablingEARLY_PRINTKis low, although it may slow down booting. But it is really not at all related to EMBEDDED.Yeah, we should remove this dependency eventually, will send a new revision later.
But for !EMBEDDED, most of the boards may don't need this option(although no big influence on the booting, but why not disable it?), if this 'default y' is there, they need to add an extra "# CONFIG_EARLY_PRINTK is not set" in their defconfig, one board one such line in the defconfig, as a result, keep this dependency there may save more lines and avoid adding this extra line to the defconfig ;-)
And some embedded devices may only provide the serial port output, I guess, this is the possible reason why it is enabled by default for EMBEDDED before. this is similar to the reason why CONFIG_SERIAL_8250_CONSOLE is always enabled for most of the embedded devices.
So, keep this dependency there and no new revision for this patch.
Regards,
Wu Zhangjin
Quoted 14 lines
Thanks & Regards,
Wu ZhangjinQuoted 9 lines
David Daney
Quoted 3 lines
arch/mips/Kconfig.debug +0
-0help This option enables special console drivers which allow the kernel to print messages very early in the bootup process.