[RFC] change in <linux/irq.h>

Manfred Spraul (manfreds@colorfullife.com)
Sun, 31 Oct 1999 19:33:06 +0100


I'd like to move local_irq_count into my new cpu_state structure, but I
need the following change in <linux/irq.h>:
<<<<<<<<<<
diff -ur 2.3/include/linux/irq.h build-2.3/include/linux/irq.h
--- 2.3/include/linux/irq.h Thu Aug 19 21:04:51 1999
+++ build-2.3/include/linux/irq.h Sun Oct 31 16:47:47 1999
@@ -69,8 +69,8 @@
hardirq_exit(cpu);
}
#else
-#define irq_enter(cpu, irq) (++local_irq_count[cpu])
-#define irq_exit(cpu, irq) (--local_irq_count[cpu])
+#define irq_enter(cpu, irq) (hardirq_enter(cpu))
+#define irq_exit(cpu, irq) (hardirq_exit(cpu))
#endif

extern hw_irq_controller no_irq_type; /* needed in every arch ? */
>>>>>>>>>

Any screams of horror?
AFAICS, all architectures have a 'hardirq_{enter,exit}' macro.

--
	Manfred

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/