Skip to contentSkip to conversation

MIPS: EARLY_PRINTK: Fixup of dependency

PATCH In review Wu Zhangjin 4 participants 6 messages Nov 24, 2009 – Nov 25, 2009 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MIPS: EARLY_PRINTK: Fixup of dependency

From: Wu Zhangjin <[email protected]>

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.

---
 arch/mips/Kconfig |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
arch/mips/Kconfig +2 -2
index b342197..d2446d5 100644
@@ -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
Signature · 1 line
1.6.2.1
#1 lore raw

Hi Wu!

On Tue, Nov 24, 2009 at 10:33 AM, Wu Zhangjin <[email protected]> wrote:
[...]

Quoted 2 lines

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

How about making it independent from DEBUG_KERNEL altogether? If find it useful even without full debug info.

Manuel

#2 lore raw
Quoted 7 lines · Manuel Lauss

On Tue, Nov 24, 2009 at 10:33 AM, Wu Zhangjin <[email protected]> wrote:
[...]

Quoted 2 lines

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

How about making it independent from DEBUG_KERNEL altogether? If find it useful even without full debug info.

DEBUG_INFO controlls the generation of ELF debug information. DEBUG_KERNEL only hides most of the debugging options.

Ralf

#3 lore raw
Quoted 9 lines · Ralf Baechle
Quoted 7 lines · Manuel Lauss

On Tue, Nov 24, 2009 at 10:33 AM, Wu Zhangjin <[email protected]> wrote:
[...]

Quoted 2 lines

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

How about making it independent from DEBUG_KERNEL altogether? If find it useful even without full debug info.

I agree with Manuel here. I often build release kernels that benefit from EARLY_PRINTK. Why not make EARLY_PRINTK a selectable option in the config? Coupling it to DEBUG_KERNEL seems confusing.

=Kevin

Quoted 6 lines

DEBUG_INFO controlls the generation of ELF debug information. DEBUG_KERNEL only hides most of the debugging options.

Ralf

#4 lore raw
Quoted 8 lines · Kevin Hickey
Quoted 7 lines · Ralf Baechle
Quoted 5 lines · Manuel Lauss

On Tue, Nov 24, 2009 at 10:33 AM, Wu Zhangjin <[email protected]> wrote:
[...]

Quoted 2 lines

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

Quoted 6 lines
Quoted 2 lines
Quoted 2 lines

How about making it independent from DEBUG_KERNEL altogether? If find it useful even without full debug info.

I agree with Manuel here. I often build release kernels that benefit from EARLY_PRINTK. Why not make EARLY_PRINTK a selectable option in the config? Coupling it to DEBUG_KERNEL seems confusing.

Hello,

Ralf have moved the EARLY_PRINTK to Kconfig.debug and removed the dependency on DEBUG_KERNEL in his -queue repository ;) Just as the X86 and some other ARCHs does:

http://www.linux-mips.org/git?p=linux-queue.git

[...]
+config EARLY_PRINTK

+       bool "Early printk" if EMBEDDED
+       depends on SYS_HAS_EARLY_PRINTK
+       default y

[...]

So, it is okay now, please ignore this patch ;)

Regards,
Wu Zhangjin

Quoted 9 lines

=Kevin

Quoted 6 lines

DEBUG_INFO controlls the generation of ELF debug information. DEBUG_KERNEL only hides most of the debugging options.

Ralf

#5 lore raw
Quoted 40 lines · Wu Zhangjin

From: Wu Zhangjin <[email protected]>
Date: Thu, 26 Nov 2009 00:15:36 +0800
To: Kevin Hickey <[email protected]>
Cc: Ralf Baechle <[email protected]>,
Manuel Lauss <[email protected]>, Linux-MIPS <[email protected]>
Subject: Re: [PATCH] MIPS: EARLY_PRINTK: Fixup of dependency
Content-Type: text/plain; charset="UTF-8"

Quoted 8 lines · Kevin Hickey
Quoted 7 lines · Ralf Baechle
Quoted 5 lines · Manuel Lauss

On Tue, Nov 24, 2009 at 10:33 AM, Wu Zhangjin <[email protected]> wrote:
[...]

Quoted 2 lines

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

Quoted 6 lines
Quoted 2 lines
Quoted 2 lines

How about making it independent from DEBUG_KERNEL altogether? If find it useful even without full debug info.

I agree with Manuel here. I often build release kernels that benefit from EARLY_PRINTK. Why not make EARLY_PRINTK a selectable option in the config? Coupling it to DEBUG_KERNEL seems confusing.

Hello,

Ralf have moved the EARLY_PRINTK to Kconfig.debug and removed the dependency on DEBUG_KERNEL in his -queue repository ;) Just as the X86 and some other ARCHs does:

http://www.linux-mips.org/git?p=linux-queue.git

[...]

(quoted diff) +4 -0
+config EARLY_PRINTK
+       bool "Early printk" if EMBEDDED
+       depends on SYS_HAS_EARLY_PRINTK
+       default y
[...]
Quoted 1 line

So, it is okay now, please ignore this patch ;)

Okay, dropped then.

Thanks!

Ralf