diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
commit | 8dea78da5cee153b8af9c07a2745f6c55057fe12 (patch) | |
tree | a8f4d49d63b1ecc92f2fddceba0655b2472c5bd9 /include/linux/irq_work.h | |
parent | 406089d01562f1e2bf9f089fd7637009ebaad589 (diff) |
Patched in Tegra support.
Diffstat (limited to 'include/linux/irq_work.h')
-rw-r--r-- | include/linux/irq_work.h | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/include/linux/irq_work.h b/include/linux/irq_work.h index 6a9e8f5399e..4fa09d4d0b7 100644 --- a/include/linux/irq_work.h +++ b/include/linux/irq_work.h | |||
@@ -1,23 +1,20 @@ | |||
1 | #ifndef _LINUX_IRQ_WORK_H | 1 | #ifndef _LINUX_IRQ_WORK_H |
2 | #define _LINUX_IRQ_WORK_H | 2 | #define _LINUX_IRQ_WORK_H |
3 | 3 | ||
4 | #include <linux/llist.h> | ||
5 | |||
6 | struct irq_work { | 4 | struct irq_work { |
7 | unsigned long flags; | 5 | struct irq_work *next; |
8 | struct llist_node llnode; | ||
9 | void (*func)(struct irq_work *); | 6 | void (*func)(struct irq_work *); |
10 | }; | 7 | }; |
11 | 8 | ||
12 | static inline | 9 | static inline |
13 | void init_irq_work(struct irq_work *work, void (*func)(struct irq_work *)) | 10 | void init_irq_work(struct irq_work *entry, void (*func)(struct irq_work *)) |
14 | { | 11 | { |
15 | work->flags = 0; | 12 | entry->next = NULL; |
16 | work->func = func; | 13 | entry->func = func; |
17 | } | 14 | } |
18 | 15 | ||
19 | bool irq_work_queue(struct irq_work *work); | 16 | bool irq_work_queue(struct irq_work *entry); |
20 | void irq_work_run(void); | 17 | void irq_work_run(void); |
21 | void irq_work_sync(struct irq_work *work); | 18 | void irq_work_sync(struct irq_work *entry); |
22 | 19 | ||
23 | #endif /* _LINUX_IRQ_WORK_H */ | 20 | #endif /* _LINUX_IRQ_WORK_H */ |