linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] rt Kconfig.preempt fixes
@ 2008-08-01 13:39 John Kacur
  2008-08-20 16:10 ` Steven Rostedt
  0 siblings, 1 reply; 3+ messages in thread
From: John Kacur @ 2008-08-01 13:39 UTC (permalink / raw)
  To: rt-users, Steven Rostedt; +Cc: LKML

[-- Attachment #1: Type: text/plain, Size: 587 bytes --]

This is a non-critical patch, that makes configuring an rt kernel a
little nicer.
Comments are welcome of course.

Signed-off-by: John Kacur <jkacur at gmail dot com>

This patch makes the following changes.
1. Hides the visibility of PREEMPT_SOFTIRQS and PREEMPT_HARDIRQS if PREEMPT_RT
(Complete Preemption) is choosen, since these values are then set (selected) to
be "y".

2. Changes the PREEMPT_HARDIRQS to depend on PREEMPT_SOFTIRQS instead of
forcing PREEMPT_SOFTIRQS to y if PREEMPT_HARDIRQS is choosen. (this is somewhat
an abuse of select)

3. Minor spelling fix. (tat to that)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: threaded-irqs-kconfig-fix.patch --]
[-- Type: text/x-patch; name=threaded-irqs-kconfig-fix.patch, Size: 2029 bytes --]

Signed-off-by: John Kacur <jkacur at gmail dot com>

This patch makes the following changes.
1. Hides the visibility of PREEMPT_SOFTIRQS and PREEMPT_HARDIRQS if PREEMPT_RT
(Complete Preemption) is choosen, since these values are then set (selected) to
be "y".

2. Changes the PREEMPT_HARDIRQS to depend on PREEMPT_SOFTIRQS instead of
forcing PREEMPT_SOFTIRQS to y if PREEMPT_HARDIRQS is choosen. (this is somewhat
an abuse of select)

3. Minor spelling fix. (tat to that)

Index: linux-2.6.26-rt1/kernel/Kconfig.preempt
===================================================================
--- linux-2.6.26-rt1.orig/kernel/Kconfig.preempt
+++ linux-2.6.26-rt1/kernel/Kconfig.preempt
@@ -88,8 +88,10 @@ config PREEMPT
 
 config PREEMPT_SOFTIRQS
 	bool "Thread Softirqs"
+# The following line makes PREEMPT_SOFTIRQS invisible if PREEMPT_RT is y
+# However, PREEMPT_RT still sets (selects) the value of PREEMPT_SOFTIRQS to y
+	depends on PREEMPT_RT != y
 	default n
-#	depends on PREEMPT
 	help
 	  This option reduces the latency of the kernel by 'threading'
           soft interrupts. This means that all softirqs will execute
@@ -104,9 +106,12 @@ config PREEMPT_SOFTIRQS
 
 config PREEMPT_HARDIRQS
 	bool "Thread Hardirqs"
+# The following line makes PREEMPT_HARDIRQS invisible if PREEMPT_RT is y
+# However, PREEMPT_RT still sets (selects) the value of PREEMPT_HARDIRQS to y
+	depends on PREEMPT_RT != y
 	default n
 	depends on !GENERIC_HARDIRQS_NO__DO_IRQ
-	select PREEMPT_SOFTIRQS
+	depends on PREEMPT_SOFTIRQS
 	help
 	  This option reduces the latency of the kernel by 'threading'
           hardirqs. This means that all (or selected) hardirqs will run
@@ -141,7 +146,7 @@ config PREEMPT_RCU_BOOST
 	default y if PREEMPT_RT
 	help
 	  This option permits priority boosting of RCU read-side critical
-	  sections tat have been preempted and a RT process is waiting
+	  sections that have been preempted and a RT process is waiting
 	  on a synchronize_rcu.
 
 	  An RCU thread is also created that periodically wakes up and

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] rt Kconfig.preempt fixes
  2008-08-01 13:39 [PATCH] rt Kconfig.preempt fixes John Kacur
@ 2008-08-20 16:10 ` Steven Rostedt
  2008-08-20 17:14   ` John Kacur
  0 siblings, 1 reply; 3+ messages in thread
From: Steven Rostedt @ 2008-08-20 16:10 UTC (permalink / raw)
  To: John Kacur; +Cc: rt-users, LKML



On Fri, 1 Aug 2008, John Kacur wrote:

> This is a non-critical patch, that makes configuring an rt kernel a
> little nicer.
> Comments are welcome of course.
> 
> Signed-off-by: John Kacur <jkacur at gmail dot com>
> 
> This patch makes the following changes.
> 1. Hides the visibility of PREEMPT_SOFTIRQS and PREEMPT_HARDIRQS if PREEMPT_RT
> (Complete Preemption) is choosen, since these values are then set (selected) to
> be "y".
> 
> 2. Changes the PREEMPT_HARDIRQS to depend on PREEMPT_SOFTIRQS instead of
> forcing PREEMPT_SOFTIRQS to y if PREEMPT_HARDIRQS is choosen. (this is somewhat
> an abuse of select)
> 
> 3. Minor spelling fix. (tat to that)
> 


Hi John,

Thanks, but instead of this:

 depends on PREEMPT_RT != y

could you do:

 depends on !PREEMPT_RT


-- Steve

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] rt Kconfig.preempt fixes
  2008-08-20 16:10 ` Steven Rostedt
@ 2008-08-20 17:14   ` John Kacur
  0 siblings, 0 replies; 3+ messages in thread
From: John Kacur @ 2008-08-20 17:14 UTC (permalink / raw)
  To: Steven Rostedt; +Cc: rt-users, LKML

[-- Attachment #1: Type: text/plain, Size: 942 bytes --]

On Wed, Aug 20, 2008 at 6:10 PM, Steven Rostedt <rostedt@goodmis.org> wrote:
>
>
> On Fri, 1 Aug 2008, John Kacur wrote:
>
>> This is a non-critical patch, that makes configuring an rt kernel a
>> little nicer.
>> Comments are welcome of course.
>>
>> Signed-off-by: John Kacur <jkacur at gmail dot com>
>>
>> This patch makes the following changes.
>> 1. Hides the visibility of PREEMPT_SOFTIRQS and PREEMPT_HARDIRQS if PREEMPT_RT
>> (Complete Preemption) is choosen, since these values are then set (selected) to
>> be "y".
>>
>> 2. Changes the PREEMPT_HARDIRQS to depend on PREEMPT_SOFTIRQS instead of
>> forcing PREEMPT_SOFTIRQS to y if PREEMPT_HARDIRQS is choosen. (this is somewhat
>> an abuse of select)
>>
>> 3. Minor spelling fix. (tat to that)
>>
>
>
> Hi John,
>
> Thanks, but instead of this:
>
>  depends on PREEMPT_RT != y
>
> could you do:
>
>  depends on !PREEMPT_RT
>
>
> -- Steve
>

Yes, regenerated patch attached.

Thanks

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: threaded-irqs-kconfig-fix.patch --]
[-- Type: text/x-patch; name=threaded-irqs-kconfig-fix.patch, Size: 1958 bytes --]

Signed-off-by: John Kacur <jkacur at gmail dot com>

This patch makes the following changes.
1. Hides the visibility of PREEMPT_SOFTIRQS and PREEMPT_HARDIRQS if PREEMPT_RT
(Complete Preemption) is choosen, since these values are then set (selected) to
be "y".

2. Changes the PREEMPT_HARDIRQS to depend on PREEMPT_SOFTIRQS instead of
forcing PREEMPT_SOFTIRQS to y if PREEMPT_HARDIRQS is choosen. (this is somewhat
an abuse of select)

3. Minor spelling fix. (tat to that)

Index: linux-2.6.26.2-rt1-jk/kernel/Kconfig.preempt
===================================================================
--- linux-2.6.26.2-rt1-jk.orig/kernel/Kconfig.preempt
+++ linux-2.6.26.2-rt1-jk/kernel/Kconfig.preempt
@@ -88,8 +88,10 @@ config PREEMPT
 
 config PREEMPT_SOFTIRQS
 	bool "Thread Softirqs"
+# PREEMPT_SOFTIRQS is visible only if !PREEMPT_RT
+# However, PREEMPT_RT will set (select) PREEMPT_SOFTIRQS to y
+	depends on !PREEMPT_RT
 	default n
-#	depends on PREEMPT
 	help
 	  This option reduces the latency of the kernel by 'threading'
           soft interrupts. This means that all softirqs will execute
@@ -104,9 +106,12 @@ config PREEMPT_SOFTIRQS
 
 config PREEMPT_HARDIRQS
 	bool "Thread Hardirqs"
+# PREEMPT_HARDIRQS is visible only if !PREEMPT_RT
+# However, PREEMPT_RT will set 8select) PREEMPT_HARDIRQS to y
+	depends on !PREEMPT_RT
 	default n
 	depends on !GENERIC_HARDIRQS_NO__DO_IRQ
-	select PREEMPT_SOFTIRQS
+	depends on PREEMPT_SOFTIRQS
 	help
 	  This option reduces the latency of the kernel by 'threading'
           hardirqs. This means that all (or selected) hardirqs will run
@@ -141,7 +146,7 @@ config PREEMPT_RCU_BOOST
 	default y if PREEMPT_RT
 	help
 	  This option permits priority boosting of RCU read-side critical
-	  sections tat have been preempted and a RT process is waiting
+	  sections that have been preempted and a RT process is waiting
 	  on a synchronize_rcu.
 
 	  An RCU thread is also created that periodically wakes up and

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-08-20 17:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-01 13:39 [PATCH] rt Kconfig.preempt fixes John Kacur
2008-08-20 16:10 ` Steven Rostedt
2008-08-20 17:14   ` John Kacur

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).