All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sh: convert to asm-generic/hardirq.h
@ 2009-08-04 14:55 Christoph Hellwig
  2009-08-05  7:18 ` Paul Mundt
  0 siblings, 1 reply; 6+ messages in thread
From: Christoph Hellwig @ 2009-08-04 14:55 UTC (permalink / raw)
  To: lethal; +Cc: linux-kernel


Signed-off-by: Christoph Hellwig <hch@lst.de>

Index: linux-2.6/arch/sh/include/asm/hardirq.h
===================================================================
--- linux-2.6.orig/arch/sh/include/asm/hardirq.h	2009-07-27 14:32:58.906148678 +0200
+++ linux-2.6/arch/sh/include/asm/hardirq.h	2009-07-27 14:44:39.214150931 +0200
@@ -1,16 +1,9 @@
 #ifndef __ASM_SH_HARDIRQ_H
 #define __ASM_SH_HARDIRQ_H
 
-#include <linux/threads.h>
-#include <linux/irq.h>
-
-/* entry.S is sensitive to the offsets of these fields */
-typedef struct {
-	unsigned int __softirq_pending;
-} ____cacheline_aligned irq_cpustat_t;
-
-#include <linux/irq_cpustat.h>	/* Standard mappings for irq_cpustat_t above */
-
 extern void ack_bad_irq(unsigned int irq);
+#define ack_bad_irq ack_bad_irq
+
+#include <asm-generic/hardirq.h>
 
 #endif /* __ASM_SH_HARDIRQ_H */

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

* Re: [PATCH] sh: convert to asm-generic/hardirq.h
  2009-08-04 14:55 [PATCH] sh: convert to asm-generic/hardirq.h Christoph Hellwig
@ 2009-08-05  7:18 ` Paul Mundt
  2009-12-17  8:10   ` Christoph Hellwig
  0 siblings, 1 reply; 6+ messages in thread
From: Paul Mundt @ 2009-08-05  7:18 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: linux-kernel

On Tue, Aug 04, 2009 at 04:55:29PM +0200, Christoph Hellwig wrote:
> 
> Signed-off-by: Christoph Hellwig <hch@lst.de>
> 
Applied, thanks.

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

* Re: [PATCH] sh: convert to asm-generic/hardirq.h
  2009-08-05  7:18 ` Paul Mundt
@ 2009-12-17  8:10   ` Christoph Hellwig
  2009-12-17  8:15     ` Paul Mundt
  0 siblings, 1 reply; 6+ messages in thread
From: Christoph Hellwig @ 2009-12-17  8:10 UTC (permalink / raw)
  To: Paul Mundt, Christoph Hellwig, linux-kernel

On Wed, Aug 05, 2009 at 04:18:28PM +0900, Paul Mundt wrote:
> On Tue, Aug 04, 2009 at 04:55:29PM +0200, Christoph Hellwig wrote:
> > 
> > Signed-off-by: Christoph Hellwig <hch@lst.de>
> > 
> Applied, thanks.

Did this cause problems in the end?  Still doesn't seem to be in Linus'
tree.

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

* Re: [PATCH] sh: convert to asm-generic/hardirq.h
  2009-12-17  8:10   ` Christoph Hellwig
@ 2009-12-17  8:15     ` Paul Mundt
  2009-12-17  8:19       ` Christoph Hellwig
  0 siblings, 1 reply; 6+ messages in thread
From: Paul Mundt @ 2009-12-17  8:15 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: linux-kernel

On Thu, Dec 17, 2009 at 09:10:48AM +0100, Christoph Hellwig wrote:
> On Wed, Aug 05, 2009 at 04:18:28PM +0900, Paul Mundt wrote:
> > On Tue, Aug 04, 2009 at 04:55:29PM +0200, Christoph Hellwig wrote:
> > > 
> > > Signed-off-by: Christoph Hellwig <hch@lst.de>
> > > 
> > Applied, thanks.
> 
> Did this cause problems in the end?  Still doesn't seem to be in Linus'
> tree.

Nope, it was in Linus' tree for awhile, but then I needed to add an
nmi_count and had to switch back to an arch-specific one.

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

* Re: [PATCH] sh: convert to asm-generic/hardirq.h
  2009-12-17  8:15     ` Paul Mundt
@ 2009-12-17  8:19       ` Christoph Hellwig
  2009-12-17  8:26         ` Paul Mundt
  0 siblings, 1 reply; 6+ messages in thread
From: Christoph Hellwig @ 2009-12-17  8:19 UTC (permalink / raw)
  To: Paul Mundt; +Cc: Christoph Hellwig, linux-kernel

On Thu, Dec 17, 2009 at 05:15:54PM +0900, Paul Mundt wrote:
> On Thu, Dec 17, 2009 at 09:10:48AM +0100, Christoph Hellwig wrote:
> > On Wed, Aug 05, 2009 at 04:18:28PM +0900, Paul Mundt wrote:
> > > On Tue, Aug 04, 2009 at 04:55:29PM +0200, Christoph Hellwig wrote:
> > > > 
> > > > Signed-off-by: Christoph Hellwig <hch@lst.de>
> > > > 
> > > Applied, thanks.
> > 
> > Did this cause problems in the end?  Still doesn't seem to be in Linus'
> > tree.
> 
> Nope, it was in Linus' tree for awhile, but then I needed to add an
> nmi_count and had to switch back to an arch-specific one.

Is there a good reason to overload the irq_cpustat with that?  It seems
like a quite horrible way to duplicate per-cpu data in a less efficient
way.

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

* Re: [PATCH] sh: convert to asm-generic/hardirq.h
  2009-12-17  8:19       ` Christoph Hellwig
@ 2009-12-17  8:26         ` Paul Mundt
  0 siblings, 0 replies; 6+ messages in thread
From: Paul Mundt @ 2009-12-17  8:26 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: linux-kernel

On Thu, Dec 17, 2009 at 09:19:16AM +0100, Christoph Hellwig wrote:
> On Thu, Dec 17, 2009 at 05:15:54PM +0900, Paul Mundt wrote:
> > On Thu, Dec 17, 2009 at 09:10:48AM +0100, Christoph Hellwig wrote:
> > > On Wed, Aug 05, 2009 at 04:18:28PM +0900, Paul Mundt wrote:
> > > > On Tue, Aug 04, 2009 at 04:55:29PM +0200, Christoph Hellwig wrote:
> > > > > 
> > > > > Signed-off-by: Christoph Hellwig <hch@lst.de>
> > > > > 
> > > > Applied, thanks.
> > > 
> > > Did this cause problems in the end?  Still doesn't seem to be in Linus'
> > > tree.
> > 
> > Nope, it was in Linus' tree for awhile, but then I needed to add an
> > nmi_count and had to switch back to an arch-specific one.
> 
> Is there a good reason to overload the irq_cpustat with that?  It seems
> like a quite horrible way to duplicate per-cpu data in a less efficient
> way.

I suppose not, but there didn't seem like a lot of good alternatives
either. Shoving it in irq_cpustat is what is presently done by at least
mn10300, x86, and xtensa. sparc chose stashing it in its cpuinfo struct,
but then also has a meaningful per-cpu storage area. If you have any
better ideas I'll certainly consider moving it.

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

end of thread, other threads:[~2009-12-17  8:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-04 14:55 [PATCH] sh: convert to asm-generic/hardirq.h Christoph Hellwig
2009-08-05  7:18 ` Paul Mundt
2009-12-17  8:10   ` Christoph Hellwig
2009-12-17  8:15     ` Paul Mundt
2009-12-17  8:19       ` Christoph Hellwig
2009-12-17  8:26         ` Paul Mundt

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.