Re: [PATCH 01/60] microblaze_v4: Kconfig patches

2008-06-27 Thread Paul Mundt
On Thu, Jun 26, 2008 at 02:29:30PM +0200, [EMAIL PROTECTED] wrote:
> +config HZ
> + int
> + default 100
> +
Consider using kernel/Kconfig.hz instead.

> +config DEFCONFIG_LIST
> + string
> + default "arch/$ARCH/defconfig"
> +
init/Kconfig already has quite a few reasonable defaults for this,
including the case you specify. You can kill this off.

> +source "init/Kconfig"
> +
> +source "arch/microblaze/platform/Kconfig.platform"
> +
> +menu "Processor type and features"
> +
> +config PREEMPT
> + bool "Preemptible Kernel"
> + help
> +   This option reduces the latency of the kernel when reacting to
> +   real-time or interactive events by allowing a low priority process to
> +   be preempted even if it is in kernel mode executing a system call.
> +   This allows applications to run more reliably even when the system is
> +   under load.
> +
> +   Say Y here if you are building a kernel for a desktop, embedded
> +   or real-time system.  Say N if you are unsure.
> +
kernel/Kconfig.preempt

> +config LARGE_ALLOCS
> + bool "Allow allocating large blocks (> 1MB) of memory"
> + help
> +   Allow the slab memory allocator to keep chains for very large
> +   memory sizes - up to 32MB. You may need this if your system has
> +   a lot of RAM, and you need to able to allocate very large
> +   contiguous chunks. If unsure, say N.
> +
Legacy bits, not used anywhere anymore.

> +comment "Boot options"
> +
> +config CMDLINE
> + string "Default kernel command string"
> + default ""
> + help
> +   On some architectures there is currently no way for the boot loader
> +   to pass arguments to the kernel. For these architectures, you should
> +   supply some command-line options at build time by entering them
> +   here.
> +
> +config CMDLINE_FORCE
> + bool "Force default kernel command string"
> + help
> +   Set this to have arguments from the default kernel command string
> +   override those passed by the boot loader.
> +
Consider CMDLINE_BOOL/CMDLINE for consistency with other architectures.
It doesn't make much sense to expose CMDLINE if you don't intend to use
it. Especially when people wonder why their CMDLINE changes are being
clobbered by the boot loader.
___
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev


[PATCH 01/60] microblaze_v4: Kconfig patches

2008-06-26 Thread monstr
From: Michal Simek <[EMAIL PROTECTED]>


Signed-off-by: Michal Simek <[EMAIL PROTECTED]>
---
 arch/microblaze/Kconfig   |  157 +
 arch/microblaze/Kconfig.debug |   39 ++
 arch/microblaze/platform/Kconfig.platform |   77 
 arch/microblaze/platform/generic/Kconfig.auto |   62 ++
 4 files changed, 335 insertions(+), 0 deletions(-)
 create mode 100644 arch/microblaze/Kconfig
 create mode 100644 arch/microblaze/Kconfig.debug
 create mode 100644 arch/microblaze/platform/Kconfig.platform
 create mode 100644 arch/microblaze/platform/generic/Kconfig.auto

diff --git a/arch/microblaze/Kconfig b/arch/microblaze/Kconfig
new file mode 100644
index 000..0e9545b
--- /dev/null
+++ b/arch/microblaze/Kconfig
@@ -0,0 +1,157 @@
+# For a description of the syntax of this configuration file,
+# see Documentation/kbuild/kconfig-language.txt.
+
+mainmenu "Linux/Microblaze Kernel Configuration"
+
+config MICROBLAZE
+   def_bool y
+   select HAVE_LMB
+
+config MMU
+   def_bool n
+
+config SWAP
+   def_bool n
+
+config RWSEM_GENERIC_SPINLOCK
+   def_bool y
+
+config RWSEM_XCHGADD_ALGORITHM
+   bool
+
+config ARCH_HAS_ILOG2_U32
+   def_bool n
+
+config ARCH_HAS_ILOG2_U64
+   def_bool n
+
+config GENERIC_FIND_NEXT_BIT
+   def_bool y
+
+config GENERIC_HWEIGHT
+   def_bool y
+
+config GENERIC_HARDIRQS
+   def_bool y
+
+config GENERIC_IRQ_PROBE
+   def_bool y
+
+config GENERIC_CALIBRATE_DELAY
+   def_bool y
+
+config GENERIC_TIME
+   def_bool y
+
+config PCI
+   def_bool n
+
+config NO_DMA
+   def_bool y
+
+config GENERIC_CSUM
+   def_bool y
+
+config HZ
+   int
+   default 100
+
+config DEFCONFIG_LIST
+   string
+   default "arch/$ARCH/defconfig"
+
+source "init/Kconfig"
+
+source "arch/microblaze/platform/Kconfig.platform"
+
+menu "Processor type and features"
+
+config PREEMPT
+   bool "Preemptible Kernel"
+   help
+ This option reduces the latency of the kernel when reacting to
+ real-time or interactive events by allowing a low priority process to
+ be preempted even if it is in kernel mode executing a system call.
+ This allows applications to run more reliably even when the system is
+ under load.
+
+ Say Y here if you are building a kernel for a desktop, embedded
+ or real-time system.  Say N if you are unsure.
+
+config PREEMPT_TIMES
+   bool "Collect preemption latency times"
+   depends on PREEMPT
+   help
+ Allow collection for preemption latency times.
+
+config LARGE_ALLOCS
+   bool "Allow allocating large blocks (> 1MB) of memory"
+   help
+ Allow the slab memory allocator to keep chains for very large
+ memory sizes - up to 32MB. You may need this if your system has
+ a lot of RAM, and you need to able to allocate very large
+ contiguous chunks. If unsure, say N.
+
+config GENERIC_CLOCKEVENTS
+   bool "Clockevents - enable"
+   default n
+   help
+ clock events
+
+comment "Boot options"
+
+config CMDLINE
+   string "Default kernel command string"
+   default ""
+   help
+ On some architectures there is currently no way for the boot loader
+ to pass arguments to the kernel. For these architectures, you should
+ supply some command-line options at build time by entering them
+ here.
+
+config CMDLINE_FORCE
+   bool "Force default kernel command string"
+   help
+ Set this to have arguments from the default kernel command string
+ override those passed by the boot loader.
+
+config OF
+   def_bool y
+
+config OF_DEVICE
+   def_bool y
+
+config PROC_DEVICETREE
+   bool "Support for device tree in /proc"
+   depends on PROC_FS
+   help
+ This option adds a device-tree directory under /proc which contains
+ an image of the device tree that the kernel copies from Open
+ Firmware or other boot firmware. If unsure, say Y here.
+
+endmenu
+
+config APM_EMULATION
+   bool
+
+source "mm/Kconfig"
+
+menu "Exectuable file formats"
+
+source "fs/Kconfig.binfmt"
+
+endmenu
+
+source "net/Kconfig"
+
+source "drivers/Kconfig"
+
+source "fs/Kconfig"
+
+source "arch/microblaze/Kconfig.debug"
+
+source "security/Kconfig"
+
+source "crypto/Kconfig"
+
+source "lib/Kconfig"
diff --git a/arch/microblaze/Kconfig.debug b/arch/microblaze/Kconfig.debug
new file mode 100644
index 000..611ef00
--- /dev/null
+++ b/arch/microblaze/Kconfig.debug
@@ -0,0 +1,39 @@
+# For a description of the syntax of this configuration file,
+# see Documentation/kbuild/kconfig-language.txt.
+
+menu "Kernel hacking"
+
+source "lib/Kconfig.debug"
+
+config EARLY_PRINTK
+   bool "Early printk function for kernel"
+   default n
+   help
+ This option turns on/off early printk messages to console.
+
+config EARLY_PRINTK_UARTLI