]> Git Repo - linux.git/blobdiff - include/linux/interrupt.h
selinux: Remove security_ops extern
[linux.git] / include / linux / interrupt.h
index cb19f09d7e3e7b72e552d142f38f326511e56eee..698ad053d064aef74793449f4b4b55018994a908 100644 (file)
@@ -199,6 +199,26 @@ extern int check_wakeup_irqs(void);
 static inline int check_wakeup_irqs(void) { return 0; }
 #endif
 
+/**
+ * struct irq_affinity_notify - context for notification of IRQ affinity changes
+ * @irq:               Interrupt to which notification applies
+ * @kref:              Reference count, for internal use
+ * @work:              Work item, for internal use
+ * @notify:            Function to be called on change.  This will be
+ *                     called in process context.
+ * @release:           Function to be called on release.  This will be
+ *                     called in process context.  Once registered, the
+ *                     structure must only be freed when this function is
+ *                     called or later.
+ */
+struct irq_affinity_notify {
+       unsigned int irq;
+       struct kref kref;
+       struct work_struct work;
+       void (*notify)(struct irq_affinity_notify *, const cpumask_t *mask);
+       void (*release)(struct kref *ref);
+};
+
 #if defined(CONFIG_SMP)
 
 extern cpumask_var_t irq_default_affinity;
@@ -242,26 +262,6 @@ extern int irq_select_affinity(unsigned int irq);
 
 extern int irq_set_affinity_hint(unsigned int irq, const struct cpumask *m);
 
-/**
- * struct irq_affinity_notify - context for notification of IRQ affinity changes
- * @irq:               Interrupt to which notification applies
- * @kref:              Reference count, for internal use
- * @work:              Work item, for internal use
- * @notify:            Function to be called on change.  This will be
- *                     called in process context.
- * @release:           Function to be called on release.  This will be
- *                     called in process context.  Once registered, the
- *                     structure must only be freed when this function is
- *                     called or later.
- */
-struct irq_affinity_notify {
-       unsigned int irq;
-       struct kref kref;
-       struct work_struct work;
-       void (*notify)(struct irq_affinity_notify *, const cpumask_t *mask);
-       void (*release)(struct kref *ref);
-};
-
 extern int
 irq_set_affinity_notifier(unsigned int irq, struct irq_affinity_notify *notify);
 
@@ -289,6 +289,12 @@ static inline int irq_set_affinity_hint(unsigned int irq,
 {
        return -EINVAL;
 }
+
+static inline int
+irq_set_affinity_notifier(unsigned int irq, struct irq_affinity_notify *notify)
+{
+       return 0;
+}
 #endif /* CONFIG_SMP */
 
 /*
This page took 0.040436 seconds and 4 git commands to generate.