mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
[PATCH] consolidate PREEMPT options into kernel/Kconfig.preempt
This patch consolidates the CONFIG_PREEMPT and CONFIG_PREEMPT_BKL preemption options into kernel/Kconfig.preempt. This, besides reducing source-code, also enables more centralized tweaking of preemption related options. Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
7f1867a5b3
commit
cc19ca86a0
4 changed files with 28 additions and 69 deletions
|
@ -510,28 +510,7 @@ config SCHED_SMT
|
||||||
cost of slightly increased overhead in some places. If unsure say
|
cost of slightly increased overhead in some places. If unsure say
|
||||||
N here.
|
N here.
|
||||||
|
|
||||||
config PREEMPT
|
source "kernel/Kconfig.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_BKL
|
|
||||||
bool "Preempt The Big Kernel Lock"
|
|
||||||
depends on PREEMPT
|
|
||||||
default y
|
|
||||||
help
|
|
||||||
This option reduces the latency of the kernel by making the
|
|
||||||
big kernel lock preemptible.
|
|
||||||
|
|
||||||
Say Y here if you are building a kernel for a desktop system.
|
|
||||||
Say N if you are unsure.
|
|
||||||
|
|
||||||
config X86_UP_APIC
|
config X86_UP_APIC
|
||||||
bool "Local APIC support on uniprocessors"
|
bool "Local APIC support on uniprocessors"
|
||||||
|
|
|
@ -270,26 +270,7 @@ config SCHED_SMT
|
||||||
when dealing with POWER5 cpus at a cost of slightly increased
|
when dealing with POWER5 cpus at a cost of slightly increased
|
||||||
overhead in some places. If unsure say N here.
|
overhead in some places. If unsure say N here.
|
||||||
|
|
||||||
config PREEMPT
|
source "kernel/Kconfig.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.
|
|
||||||
|
|
||||||
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_BKL
|
|
||||||
bool "Preempt The Big Kernel Lock"
|
|
||||||
depends on PREEMPT
|
|
||||||
default y
|
|
||||||
help
|
|
||||||
This option reduces the latency of the kernel by making the
|
|
||||||
big kernel lock preemptible.
|
|
||||||
|
|
||||||
Say Y here if you are building a kernel for a desktop system.
|
|
||||||
Say N if you are unsure.
|
|
||||||
|
|
||||||
config EEH
|
config EEH
|
||||||
bool "PCI Extended Error Handling (EEH)" if EMBEDDED
|
bool "PCI Extended Error Handling (EEH)" if EMBEDDED
|
||||||
|
|
|
@ -207,33 +207,6 @@ config SMP
|
||||||
|
|
||||||
If you don't know what to do here, say N.
|
If you don't know what to do here, say N.
|
||||||
|
|
||||||
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. On contrary it may also break your drivers and add
|
|
||||||
priority inheritance problems to your system. Don't select it if
|
|
||||||
you rely on a stable system or have slightly obscure hardware.
|
|
||||||
It's also not very well tested on x86-64 currently.
|
|
||||||
You have been warned.
|
|
||||||
|
|
||||||
Say Y here if you are feeling brave and building a kernel for a
|
|
||||||
desktop, embedded or real-time system. Say N if you are unsure.
|
|
||||||
|
|
||||||
config PREEMPT_BKL
|
|
||||||
bool "Preempt The Big Kernel Lock"
|
|
||||||
depends on PREEMPT
|
|
||||||
default y
|
|
||||||
help
|
|
||||||
This option reduces the latency of the kernel by making the
|
|
||||||
big kernel lock preemptible.
|
|
||||||
|
|
||||||
Say Y here if you are building a kernel for a desktop system.
|
|
||||||
Say N if you are unsure.
|
|
||||||
|
|
||||||
config SCHED_SMT
|
config SCHED_SMT
|
||||||
bool "SMT (Hyperthreading) scheduler support"
|
bool "SMT (Hyperthreading) scheduler support"
|
||||||
depends on SMP
|
depends on SMP
|
||||||
|
@ -244,6 +217,8 @@ config SCHED_SMT
|
||||||
cost of slightly increased overhead in some places. If unsure say
|
cost of slightly increased overhead in some places. If unsure say
|
||||||
N here.
|
N here.
|
||||||
|
|
||||||
|
source "kernel/Kconfig.preempt"
|
||||||
|
|
||||||
config K8_NUMA
|
config K8_NUMA
|
||||||
bool "K8 NUMA support"
|
bool "K8 NUMA support"
|
||||||
select NUMA
|
select NUMA
|
||||||
|
|
24
kernel/Kconfig.preempt
Normal file
24
kernel/Kconfig.preempt
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
|
||||||
|
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_BKL
|
||||||
|
bool "Preempt The Big Kernel Lock"
|
||||||
|
depends on PREEMPT
|
||||||
|
default y
|
||||||
|
help
|
||||||
|
This option reduces the latency of the kernel by making the
|
||||||
|
big kernel lock preemptible.
|
||||||
|
|
||||||
|
Say Y here if you are building a kernel for a desktop system.
|
||||||
|
Say N if you are unsure.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue