All of lore.kernel.org
 help / color / mirror / Atom feed
* 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

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.