OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9cff60d
)
genirq: Add setter for AFFINITY_SET in irq_data state
author
Thomas Gleixner
<tglx@linutronix.de>
Mon, 28 Mar 2011 15:11:13 +0000
(17:11 +0200)
committer
Thomas Gleixner
<tglx@linutronix.de>
Mon, 28 Mar 2011 15:31:40 +0000
(17:31 +0200)
Some archs want to prevent the default affinity being set on their
chips in the reqeust_irq() path.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/linux/irq.h
patch
|
blob
|
history
diff --git
a/include/linux/irq.h
b/include/linux/irq.h
index
84e1c58
..
34b954e
100644
(file)
--- a/
include/linux/irq.h
+++ b/
include/linux/irq.h
@@
-212,6
+212,11
@@
static inline bool irqd_affinity_was_set(struct irq_data *d)
return d->state_use_accessors & IRQD_AFFINITY_SET;
}
+static inline void irqd_mark_affinity_was_set(struct irq_data *d)
+{
+ d->state_use_accessors |= IRQD_AFFINITY_SET;
+}
+
static inline u32 irqd_get_trigger_type(struct irq_data *d)
{
return d->state_use_accessors & IRQD_TRIGGER_MASK;