]>
git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blob - kernel/irq/settings.h
ba0fffe410ad2b58904078093872dff4dcb2ad38
2 * Internal header to deal with irq_desc->status which will be renamed
3 * to irq_desc->settings.
6 _IRQ_DEFAULT_INIT_FLAGS
= IRQ_DEFAULT_INIT_FLAGS
,
7 _IRQ_PER_CPU
= IRQ_PER_CPU
,
8 _IRQ_NO_BALANCING
= IRQ_NO_BALANCING
,
9 _IRQF_MODIFY_MASK
= IRQF_MODIFY_MASK
,
13 #define IRQ_INPROGRESS GOT_YOU_MORON
15 #define IRQ_REPLAY GOT_YOU_MORON
17 #define IRQ_WAITING GOT_YOU_MORON
19 #define IRQ_DISABLED GOT_YOU_MORON
21 #define IRQ_PENDING GOT_YOU_MORON
23 #define IRQ_MASKED GOT_YOU_MORON
25 #define IRQ_WAKEUP GOT_YOU_MORON
26 #undef IRQ_MOVE_PENDING
27 #define IRQ_MOVE_PENDING GOT_YOU_MORON
29 #define IRQ_PER_CPU GOT_YOU_MORON
30 #undef IRQ_NO_BALANCING
31 #define IRQ_NO_BALANCING GOT_YOU_MORON
32 #undef IRQF_MODIFY_MASK
33 #define IRQF_MODIFY_MASK GOT_YOU_MORON
36 irq_settings_clr_and_set(struct irq_desc
*desc
, u32 clr
, u32 set
)
38 desc
->status
&= ~(clr
& _IRQF_MODIFY_MASK
);
39 desc
->status
|= (set
& _IRQF_MODIFY_MASK
);
42 static inline bool irq_settings_is_per_cpu(struct irq_desc
*desc
)
44 return desc
->status
& _IRQ_PER_CPU
;
47 static inline void irq_settings_set_per_cpu(struct irq_desc
*desc
)
49 desc
->status
|= _IRQ_PER_CPU
;
52 static inline void irq_settings_set_no_balancing(struct irq_desc
*desc
)
54 desc
->status
|= _IRQ_NO_BALANCING
;
57 static inline bool irq_settings_has_no_balance_set(struct irq_desc
*desc
)
59 return desc
->status
& _IRQ_NO_BALANCING
;