| To: | linux-mips@linux-mips.org |
|---|---|
| Subject: | [PATCH 2/3] mips:powertv: Make kernel command line size configurable (resend) |
| From: | David VomLehn <dvomlehn@cisco.com> |
| Date: | Fri, 29 May 2009 11:30:40 -0700 |
| Authentication-results: | rtp-dkim-1; header.From=dvomlehn@cisco.com; dkim=pass ( sig from cisco.com/rtpdkim1001 verified; ); |
| Cc: | ralf@linux-mips.org |
| Dkim-signature: | v=1; a=rsa-sha256; q=dns/txt; l=1381; t=1243621840; x=1244485840; c=relaxed/simple; s=rtpdkim1001; h=Content-Type:From:Subject:Content-Transfer-Encoding:MIME-Version; d=cisco.com; i=dvomlehn@cisco.com; z=From:=20David=20VomLehn=20<dvomlehn@cisco.com> |Subject:=20[PATCH=202/3]=20mips=3Apowertv=3A=20Make=20kern el=20command=20line=20size=0A=09configurable=20(resend) |Sender:=20 |To:=20linux-mips@linux-mips.org; bh=QChCafKFKQZR0MXfTBpj7rhqJBTpk+ar6Cou0Tf900A=; b=PzzS8DFkBM7zpNV5ZfzZVz46KBlwnR0In7FZDrXVWTA2lRAsdvf4EllgFO xDTj0Tj8oNZqMg0xl05JPFSXE3st4IreOPbOKDpbpLZO8ZRAC8qWsxq970+b Xi1RrT6lP+; |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| Sender: | linux-mips-bounce@linux-mips.org |
| User-agent: | Mutt/1.5.18 (2008-05-17) |
Most platforms can get by perfectly well with the default command line size,
but some platforms need more. This patch allows the command line size to
be configured for those platforms that need it. The default remains 256
characters.
Signed-off-by: David VomLehn <dvomlehn@cisco.com>
---
arch/mips/Kconfig | 7 +++++++
arch/mips/include/asm/setup.h | 2 +-
2 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index 998e5db..99f7b6d 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -780,6 +780,13 @@ config EARLY_PRINTK
config SYS_HAS_EARLY_PRINTK
bool
+config COMMAND_LINE_SIZE
+ int "Maximum size of command line passed to kernel from bootloader"
+ default 256
+ help
+ Most systems work well with the default value, but some bootloaders
pass more
+ information on the command line than others. A smaller value is good
here.
+
config HOTPLUG_CPU
bool
default n
diff --git a/arch/mips/include/asm/setup.h b/arch/mips/include/asm/setup.h
index e600ced..132e397 100644
--- a/arch/mips/include/asm/setup.h
+++ b/arch/mips/include/asm/setup.h
@@ -1,7 +1,7 @@
#ifndef _MIPS_SETUP_H
#define _MIPS_SETUP_H
-#define COMMAND_LINE_SIZE 256
+#define COMMAND_LINE_SIZE CONFIG_COMMAND_LINE_SIZE
#ifdef __KERNEL__
extern void setup_early_printk(void);
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 0/3] mips:powertv: Introduction to new Cisco Powertv platform, v2, David VomLehn |
|---|---|
| Next by Date: | [PATCH 1/3] mips:powertv: Base files for Cisco Powertv platform, v3, David VomLehn |
| Previous by Thread: | Re: [PATCH 2/3] mips:powertv: Make kernel command line size configurable (resend), Paul Gortmaker |
| Next by Thread: | [PATCH 3/3] mips:powertv: Integrate Cisco Powertv platform into MIPS architecture (resend), David VomLehn |
| Indexes: | [Date] [Thread] [Top] [All Lists] |