diff options
author | Sean Paul <seanpaul@chromium.org> | 2017-07-26 18:39:07 -0400 |
---|---|---|
committer | Sean Paul <seanpaul@chromium.org> | 2017-07-26 18:39:07 -0400 |
commit | 78acea381d6eb1c67b155e7e2638ba3b1728eb07 (patch) | |
tree | 323b89e2f43f5f177223aeb61a6a18fe12eda011 /kernel/irq/internals.h | |
parent | 67022227ffb1f588e70deeccc9246ec93e26f980 (diff) | |
parent | e6742e1021a5cec55fab50a0b115c65217488eda (diff) |
Merge airlied/drm-next into drm-misc-next
Backmerge drm-next with -rc2 in it to pull in a couple stm patches that
were previously incorrectly applied to -misc-next. By picking them up in
the correct manner, git will hopefully fix any errant trees that are out
in the wild.
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Diffstat (limited to 'kernel/irq/internals.h')
-rw-r--r-- | kernel/irq/internals.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/kernel/irq/internals.h b/kernel/irq/internals.h index dbfba9933ed2..a2c48058354c 100644 --- a/kernel/irq/internals.h +++ b/kernel/irq/internals.h @@ -227,6 +227,16 @@ static inline bool irqd_has_set(struct irq_data *d, unsigned int mask) return __irqd_to_state(d) & mask; } +static inline void irq_state_set_disabled(struct irq_desc *desc) +{ + irqd_set(&desc->irq_data, IRQD_IRQ_DISABLED); +} + +static inline void irq_state_set_masked(struct irq_desc *desc) +{ + irqd_set(&desc->irq_data, IRQD_IRQ_MASKED); +} + #undef __irqd_to_state static inline void kstat_incr_irqs_this_cpu(struct irq_desc *desc) |