* PF_HARDIRQ used in preempt-realtime-core.patch
@ 2008-10-06 19:49 Paul Gortmaker
2008-10-06 20:20 ` Sven-Thorsten Dietrich
0 siblings, 1 reply; 5+ messages in thread
From: Paul Gortmaker @ 2008-10-06 19:49 UTC (permalink / raw)
To: linux-rt-users; +Cc: rostedt
I noticed that preempt-realtime-core.patch does this to hardirq.h:
-#define in_irq() (hardirq_count())
-#define in_softirq() (softirq_count())
-#define in_interrupt() (irq_count())
+#define in_irq() (hardirq_count() || (current->flags & PF_HARDIRQ))
+#define in_softirq() (softirq_count() || (current->flags & PF_SOFTIRQ))
+#define in_interrupt() (irq_count())
I was thinking that in order to have better patch bisection for future
hard/softirq segmentation, that this chunk would be better suited to
live in preempt-irqs-core.patch (where PF_HARDIRQ is introduced).
That would reduce the preempt-realtime-core.patch for hardirq.h to just
one line, if we drop the whitespace shuffling in there at the same time.
I can send diffs of the existing 26rt9 patches, but I'm not sure how useful
folks would find diffs of diffs (if any at all.). Since it doesn't
impact the actual code base of the resulting patched tree, the other
option is to just ignore it for 26 but keep it in mind for the future.
Paul.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: PF_HARDIRQ used in preempt-realtime-core.patch
2008-10-06 19:49 PF_HARDIRQ used in preempt-realtime-core.patch Paul Gortmaker
@ 2008-10-06 20:20 ` Sven-Thorsten Dietrich
2008-10-06 21:11 ` Paul Gortmaker
0 siblings, 1 reply; 5+ messages in thread
From: Sven-Thorsten Dietrich @ 2008-10-06 20:20 UTC (permalink / raw)
To: Paul Gortmaker; +Cc: linux-rt-users, rostedt, Thomas Gleixner
On Mon, 2008-10-06 at 15:49 -0400, Paul Gortmaker wrote:
> I noticed that preempt-realtime-core.patch does this to hardirq.h:
>
> -#define in_irq() (hardirq_count())
> -#define in_softirq() (softirq_count())
> -#define in_interrupt() (irq_count())
> +#define in_irq() (hardirq_count() || (current->flags & PF_HARDIRQ))
> +#define in_softirq() (softirq_count() || (current->flags & PF_SOFTIRQ))
> +#define in_interrupt() (irq_count())
>
> I was thinking that in order to have better patch bisection for future
> hard/softirq segmentation, that this chunk would be better suited to
> live in preempt-irqs-core.patch (where PF_HARDIRQ is introduced).
>
> That would reduce the preempt-realtime-core.patch for hardirq.h to just
> one line, if we drop the whitespace shuffling in there at the same time.
>
> I can send diffs of the existing 26rt9 patches, but I'm not sure how useful
> folks would find diffs of diffs (if any at all.). Since it doesn't
> impact the actual code base of the resulting patched tree, the other
> option is to just ignore it for 26 but keep it in mind for the future.
>
Hi Paul,
at the risk of speaking out of turn here, I know that there is a history
of cleanup attempts, that have not succeeded.
That being said, it might be in the best interest of avoiding wasted
effort, or additional frustration, to keep cleanups as separate patches,
at least until we have some kind of response from Steven or Thomas.
Sven
> Paul.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: PF_HARDIRQ used in preempt-realtime-core.patch
2008-10-06 20:20 ` Sven-Thorsten Dietrich
@ 2008-10-06 21:11 ` Paul Gortmaker
2008-10-06 21:22 ` Sven-Thorsten Dietrich
0 siblings, 1 reply; 5+ messages in thread
From: Paul Gortmaker @ 2008-10-06 21:11 UTC (permalink / raw)
To: Sven-Thorsten Dietrich; +Cc: linux-rt-users, rostedt, Thomas Gleixner
Sven-Thorsten Dietrich wrote:
> On Mon, 2008-10-06 at 15:49 -0400, Paul Gortmaker wrote:
>
>> I noticed that preempt-realtime-core.patch does this to hardirq.h:
>>
>> -#define in_irq() (hardirq_count())
>> -#define in_softirq() (softirq_count())
>> -#define in_interrupt() (irq_count())
>> +#define in_irq() (hardirq_count() || (current->flags & PF_HARDIRQ))
>> +#define in_softirq() (softirq_count() || (current->flags & PF_SOFTIRQ))
>> +#define in_interrupt() (irq_count())
>>
>> I was thinking that in order to have better patch bisection for future
>> hard/softirq segmentation, that this chunk would be better suited to
>> live in preempt-irqs-core.patch (where PF_HARDIRQ is introduced).
>>
>> That would reduce the preempt-realtime-core.patch for hardirq.h to just
>> one line, if we drop the whitespace shuffling in there at the same time.
>>
>> I can send diffs of the existing 26rt9 patches, but I'm not sure how useful
>> folks would find diffs of diffs (if any at all.). Since it doesn't
>> impact the actual code base of the resulting patched tree, the other
>> option is to just ignore it for 26 but keep it in mind for the future.
>>
>>
>
> Hi Paul,
>
> at the risk of speaking out of turn here, I know that there is a history
> of cleanup attempts, that have not succeeded.
>
Yes, I've seen some of that history and have no interest in repeating
it. From the beginning I was trying to determine what would be the
most use to folks, and trying to avoid anything that I thought could be
in any way antagonistic to the folks doing the real work on RT.
> That being said, it might be in the best interest of avoiding wasted
> effort, or additional frustration, to keep cleanups as separate patches,
> at least until we have some kind of response from Steven or Thomas.
>
I agree completely, and hence that was my original underlying goal with the
carry forward -- to bring the patches forward in a form that kept them as
close to the originals as possible. Any new patches that I had to add in
order to get things to compile/boot I've kept as tail patches on the end,
and I'll continue to keep them there.
I just wanted to give a heads up on this as I happened to notice it while
reading over the patches, and since threaded IRQ support is a recent
area of interest. I'd feel guilty seeing it, but then just saying nothing.
If a 26rt10 appears with a change like this in it, then I'll make the same
change in the carry forward patches I've done. Otherwise I'll leave things
located exactly where they are in the carry forward series.
Thanks for the feedback, it helps me to know that I wasn't completely
off base with my original thoughts of how to do something that might
be useful in the end.
Paul.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: PF_HARDIRQ used in preempt-realtime-core.patch
2008-10-06 21:11 ` Paul Gortmaker
@ 2008-10-06 21:22 ` Sven-Thorsten Dietrich
2008-10-07 14:54 ` Steven Rostedt
0 siblings, 1 reply; 5+ messages in thread
From: Sven-Thorsten Dietrich @ 2008-10-06 21:22 UTC (permalink / raw)
To: Paul Gortmaker; +Cc: linux-rt-users, rostedt, Thomas Gleixner, Gregory Haskins
On Mon, 2008-10-06 at 17:11 -0400, Paul Gortmaker wrote:
>
> Thanks for the feedback, it helps me to know that I wasn't completely
> off base with my original thoughts of how to do something that might
> be useful in the end.
>
I've pulled your patches into the preliminary openSUSE 11.1 RT Kernel
so far.
I have to admit, a couple of the build fixes I did late night have not
been pushed back; I'll sort through it asap, and I think Greg will have
some patches for you to add as well.
It was my understanding that Thomas wanted to break into several git
trees that had the different RT "features" broken out into several
branches, and that makes sense to me.
Sven
> Paul.
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: PF_HARDIRQ used in preempt-realtime-core.patch
2008-10-06 21:22 ` Sven-Thorsten Dietrich
@ 2008-10-07 14:54 ` Steven Rostedt
0 siblings, 0 replies; 5+ messages in thread
From: Steven Rostedt @ 2008-10-07 14:54 UTC (permalink / raw)
To: Sven-Thorsten Dietrich
Cc: Paul Gortmaker, linux-rt-users, Thomas Gleixner, Gregory Haskins
[-- Attachment #1: Type: TEXT/PLAIN, Size: 954 bytes --]
On Mon, 6 Oct 2008, Sven-Thorsten Dietrich wrote:
> On Mon, 2008-10-06 at 17:11 -0400, Paul Gortmaker wrote:
>
> >
> > Thanks for the feedback, it helps me to know that I wasn't completely
> > off base with my original thoughts of how to do something that might
> > be useful in the end.
> >
>
> I've pulled your patches into the preliminary openSUSE 11.1 RT Kernel
> so far.
>
> I have to admit, a couple of the build fixes I did late night have not
> been pushed back; I'll sort through it asap, and I think Greg will have
> some patches for you to add as well.
>
> It was my understanding that Thomas wanted to break into several git
> trees that had the different RT "features" broken out into several
> branches, and that makes sense to me.
I will finally have some time this week to start working on this.
I may be peeking at the this git tree too. But first I just want
to break everything out.
-- Steve
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-10-07 14:54 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-06 19:49 PF_HARDIRQ used in preempt-realtime-core.patch Paul Gortmaker
2008-10-06 20:20 ` Sven-Thorsten Dietrich
2008-10-06 21:11 ` Paul Gortmaker
2008-10-06 21:22 ` Sven-Thorsten Dietrich
2008-10-07 14:54 ` Steven Rostedt
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.