summaryrefslogtreecommitdiff
path: root/irq.h
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-06-03 22:49:19 +0200
committerDaniel Borkmann <dborkman@redhat.com>2013-06-03 22:52:33 +0200
commitdc5f7a04f2b446b5224be356c2fc79e88a5d3e8f (patch)
tree1bde4c8eea045e789ea797117e7ab3b84aac7117 /irq.h
parent0bc86fe938e8f6d12aca41a283491f51729d5c62 (diff)
irq: break out from xutils and save + restore
Break out IRQ functionality from xutils, simplify it, and save + restore IRQ affinity list. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'irq.h')
-rw-r--r--irq.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/irq.h b/irq.h
new file mode 100644
index 0000000..6c1c850
--- /dev/null
+++ b/irq.h
@@ -0,0 +1,10 @@
+#ifndef IRQ_H
+#define IRQ_H
+
+extern int device_irq_number(const char *ifname);
+extern int device_bind_irq_to_cpu(int irq, int cpu);
+extern void device_restore_irq_affinity_list(void);
+extern int device_set_irq_affinity_list(int irq, unsigned long from,
+ unsigned long to);
+
+#endif /* IRQ_H */