[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1232889227-20887-4-git-send-email-u.kleine-koenig@pengutronix.de>
Date: Sun, 25 Jan 2009 14:13:47 +0100
From: Uwe Kleine-König
<u.kleine-koenig@...gutronix.de>
To: linux-kernel@...r.kernel.org
Cc: linux-arm-kernel@...ts.arm.linux.org.uk,
Russell King <rmk+kernel@....linux.org.uk>,
Steven Rostedt <rostedt@...dmis.org>
Subject: [PATCH] Use kernel/Kconfig.preempt for ARM
before this patch ARM had it's own definition of CONFIG_PREEMPT.
Instead of that use the general definition provided in
kernel/Kconfig.preempt.
It adds some dependencies such that the available options don't change
(neither for ARM nor for other archs). The only resulting changes are
that ARM gets CONFIG_PREEMPT_NONE and the help text.
Currently the only usage of CONFIG_PREEMPT_NONE is in
kernel/trace/trace.c and only affects the content of some proc files
where "M:unknown" is changed to "M:server" if it is defined.
The intention is that ARM gets the option CONFIG_PREEMPT_RT after it
will be added to kernel/Kconfig.preempt as it is done in the linux-rt
tree.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@...gutronix.de>
Cc: Russell King <rmk+kernel@....linux.org.uk>
Cc: Steven Rostedt <rostedt@...dmis.org>
---
arch/arm/Kconfig | 13 +------------
kernel/Kconfig.preempt | 2 ++
2 files changed, 3 insertions(+), 12 deletions(-)
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 9722f8b..85722ba 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -789,18 +789,7 @@ config LOCAL_TIMERS
accounting to be spread across the timer interval, preventing a
"thundering herd" at every timer tick.
-config PREEMPT
- bool "Preemptible Kernel (EXPERIMENTAL)"
- depends on EXPERIMENTAL
- 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.
+source kernel/Kconfig.preempt
config HZ
int
diff --git a/kernel/Kconfig.preempt b/kernel/Kconfig.preempt
index 3953130..22b1b18 100644
--- a/kernel/Kconfig.preempt
+++ b/kernel/Kconfig.preempt
@@ -18,6 +18,7 @@ config PREEMPT_NONE
config PREEMPT_VOLUNTARY
bool "Voluntary Kernel Preemption (Desktop)"
+ depends on !ARM
help
This option reduces the latency of the kernel by adding more
"explicit preemption points" to the kernel code. These new
@@ -35,6 +36,7 @@ config PREEMPT_VOLUNTARY
config PREEMPT_DESKTOP
bool "Preemptible Kernel (Low-Latency Desktop)"
+ depends on !ARM || EXPERIMENTAL
help
This option reduces the latency of the kernel by making
all kernel code (that is not executing in a critical section)
--
1.5.6.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists