Skip to contentSkip to conversation

sched/preempt fixes

GIT PULL In review Frederic Weisbecker 3 participants 6 messages Jul 5, 2011 – Jul 7, 2011 Tensilica Xtensa port (xtensa)

lore
Share & tools
lore
#0 lore raw

Ingo,

Please pull the sched/core branch that can be found at:

git://git.kernel.org/pub/scm/linux/kernel/git/frederic/random-tracing.git
sched/core

Thanks,
Frederic
---

Frederic Weisbecker (3):
m32r: Use generic PREEMPT config
h8300: Use generic config PREEMPT definition
xtensa: Use generic config PREEMPT definition

 arch/h8300/Kconfig.cpu |    4 +---
 arch/m32r/Kconfig      |   12 +-----------
 arch/xtensa/Kconfig    |   13 +------------
 3 files changed, 3 insertions(+), 26 deletions(-)
#1 lore raw

PATCH 1/3 m32r: Use generic PREEMPT config

Use the generic preempt config definition in m32r instead of using a custom one.

This also makes it handle the new CONFIG_PREEMPT_COUNT that need to be selected by CONFIG_PREEMPT.

Without that it breaks

kernel/sched.c: In function 'preempt_schedule':
kernel/sched.c:4364: error: implicit declaration of function 'add_preempt_count_notrace' kernel/sched.c:4366: error: implicit declaration of function 'sub_preempt_count_notrace'

---
 arch/m32r/Kconfig |   12 +-----------
 1 files changed, 1 insertions(+), 11 deletions(-)
arch/m32r/Kconfig +1 -11
index 85b44e8..b92b944 100644
@@ -268,17 +268,7 @@ config SCHED_OMIT_FRAME_POINTER
         bool
         default y
 
-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.
+source "kernel/Kconfig.preempt"
 
 config SMP
 	bool "Symmetric multi-processing support"
Signature · 1 line
1.7.5.4
Acked-by on v1 1/3
#2 lore raw

Re: [PATCH 1/3] m32r: Use generic PREEMPT config

From: Frederic Weisbecker <[email protected]>
Subject: [PATCH 1/3] m32r: Use generic PREEMPT config
Date: Tue, 05 Jul 2011 18:04:26 +0200

Quoted 8 lines

Use the generic preempt config definition in m32r instead of using a custom one.

This also makes it handle the new CONFIG_PREEMPT_COUNT that need to be selected by CONFIG_PREEMPT.

Without that it breaks

Quoted 7 lines

kernel/sched.c: In function 'preempt_schedule':
kernel/sched.c:4364: error: implicit declaration of function 'add_preempt_count_notrace' kernel/sched.c:4366: error: implicit declaration of function 'sub_preempt_count_notrace'

Thank you.

Quoted 30 lines
---
 arch/m32r/Kconfig |   12 +-----------
 1 files changed, 1 insertions(+), 11 deletions(-)
arch/m32r/Kconfig +1 -11
index 85b44e8..b92b944 100644
@@ -268,17 +268,7 @@ config SCHED_OMIT_FRAME_POINTER
         bool
         default y
 
-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.
+source "kernel/Kconfig.preempt"
 
 config SMP
 	bool "Symmetric multi-processing support"
Signature · 1 line
1.7.5.4
#3 lore raw

PATCH 2/3 h8300: Use generic config PREEMPT definition

In reply to Frederic Weisbecker

So that it can handle the new CONFIG_PREEMPT_COUNT.

---
 arch/h8300/Kconfig.cpu |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
arch/h8300/Kconfig.cpu +1 -3
index d236ab4..15c2228 100644
@@ -162,9 +162,7 @@ config H8300_TPU_CH
 	int "TPU channel"
 	depends on H8300_TPU
 
-config PREEMPT
-	bool "Preemptible Kernel"
-	default n
+source "kernel/Kconfig.preempt"
 
 source "mm/Kconfig"
 
Signature · 1 line
1.7.5.4
#4 lore raw

PATCH 3/3 xtensa: Use generic config PREEMPT definition

In reply to Frederic Weisbecker

So that it can handle the new CONFIG_PREEMPT_COUNT.

---
 arch/xtensa/Kconfig |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)
arch/xtensa/Kconfig +1 -12
index 5d43c1f..c346ccd 100644
@@ -80,18 +80,7 @@ config XTENSA_UNALIGNED_USER
 
 	  Say Y here to enable unaligned memory access in user space.
 
-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.
-          Unfortunately the kernel code has some race conditions if both
-          CONFIG_SMP and CONFIG_PREEMPT are enabled, so this option is
-          currently disabled if you are building an SMP kernel.
-
-          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 MATH_EMULATION
 	bool "Math emulation"
Signature · 1 line
1.7.5.4
#5 lore raw
In reply to Frederic Weisbecker
Quoted 17 lines · Frederic Weisbecker

Ingo,

Please pull the sched/core branch that can be found at:

git://git.kernel.org/pub/scm/linux/kernel/git/frederic/random-tracing.git
sched/core

Thanks,
Frederic
---

Frederic Weisbecker (3):
m32r: Use generic PREEMPT config
h8300: Use generic config PREEMPT definition
xtensa: Use generic config PREEMPT definition

Quoted 4 lines
 arch/h8300/Kconfig.cpu |    4 +---
 arch/m32r/Kconfig      |   12 +-----------
 arch/xtensa/Kconfig    |   13 +------------
 3 files changed, 3 insertions(+), 26 deletions(-)

Pulled, thanks Frederic!

Ingo