Thread (19 messages) 19 messages, 5 authors, 2011-09-26

[RFC PATCH 1/3] genirq: add support for per-cpu dev_id interrupts

From: Michał Mirosław <hidden>
Date: 2011-09-15 21:36:45
Also in: lkml

2011/9/15 Marc Zyngier [off-list ref]:
[...]
quoted hunk ↗ jump to hunk
diff --git a/include/linux/interrupt.h b/include/linux/interrupt.h
index a103732..f9b7fa3 100644
--- a/include/linux/interrupt.h
+++ b/include/linux/interrupt.h
@@ -95,6 +95,7 @@ typedef irqreturn_t (*irq_handler_t)(int, void *);
?* @flags: ? ? flags (see IRQF_* above)
?* @name: ? ? ?name of the device
?* @dev_id: ? ?cookie to identify the device
+ * @percpu_dev_id: ? ? cookie to identify the device
?* @next: ? ? ?pointer to the next irqaction for shared interrupts
?* @irq: ? ? ? interrupt number
?* @dir: ? ? ? pointer to the proc/irq/NN/name entry
@@ -104,17 +105,20 @@ typedef irqreturn_t (*irq_handler_t)(int, void *);
?* @thread_mask: ? ? ? bitmask for keeping track of @thread activity
?*/
?struct irqaction {
[...]
+ ? ? ? void ? ? ? ? ? ? ? ? ? ?*dev_id;
+#ifdef CONFIG_IRQ_PERCPU_DEVID
+ ? ? ? void __percpu ? ? ? ? ? *percpu_dev_id;
+#endif
Those two can share the memory (in a anonymous union), if I read the
idea correctly.

Best Regards,
Micha? Miros?aw
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help