|
@@ -249,6 +249,44 @@ irq_init_generic_chip(struct irq_chip_generic *gc, const char *name,
|
|
void __iomem *reg_base, irq_flow_handler_t handler) { }
|
|
void __iomem *reg_base, irq_flow_handler_t handler) { }
|
|
#endif /* CONFIG_GENERIC_IRQ_CHIP */
|
|
#endif /* CONFIG_GENERIC_IRQ_CHIP */
|
|
|
|
|
|
|
|
+#ifdef CONFIG_GENERIC_PENDING_IRQ
|
|
|
|
+static inline bool irq_can_move_pcntxt(struct irq_data *data)
|
|
|
|
+{
|
|
|
|
+ return irqd_can_move_in_process_context(data);
|
|
|
|
+}
|
|
|
|
+static inline bool irq_move_pending(struct irq_data *data)
|
|
|
|
+{
|
|
|
|
+ return irqd_is_setaffinity_pending(data);
|
|
|
|
+}
|
|
|
|
+static inline void
|
|
|
|
+irq_copy_pending(struct irq_desc *desc, const struct cpumask *mask)
|
|
|
|
+{
|
|
|
|
+ cpumask_copy(desc->pending_mask, mask);
|
|
|
|
+}
|
|
|
|
+static inline void
|
|
|
|
+irq_get_pending(struct cpumask *mask, struct irq_desc *desc)
|
|
|
|
+{
|
|
|
|
+ cpumask_copy(mask, desc->pending_mask);
|
|
|
|
+}
|
|
|
|
+#else /* CONFIG_GENERIC_PENDING_IRQ */
|
|
|
|
+static inline bool irq_can_move_pcntxt(struct irq_data *data)
|
|
|
|
+{
|
|
|
|
+ return true;
|
|
|
|
+}
|
|
|
|
+static inline bool irq_move_pending(struct irq_data *data)
|
|
|
|
+{
|
|
|
|
+ return false;
|
|
|
|
+}
|
|
|
|
+static inline void
|
|
|
|
+irq_copy_pending(struct irq_desc *desc, const struct cpumask *mask)
|
|
|
|
+{
|
|
|
|
+}
|
|
|
|
+static inline void
|
|
|
|
+irq_get_pending(struct cpumask *mask, struct irq_desc *desc)
|
|
|
|
+{
|
|
|
|
+}
|
|
|
|
+#endif /* CONFIG_GENERIC_PENDING_IRQ */
|
|
|
|
+
|
|
#ifdef CONFIG_GENERIC_IRQ_DEBUGFS
|
|
#ifdef CONFIG_GENERIC_IRQ_DEBUGFS
|
|
void irq_add_debugfs_entry(unsigned int irq, struct irq_desc *desc);
|
|
void irq_add_debugfs_entry(unsigned int irq, struct irq_desc *desc);
|
|
void irq_remove_debugfs_entry(struct irq_desc *desc);
|
|
void irq_remove_debugfs_entry(struct irq_desc *desc);
|