genirq: Add irq_set_pending
The function allows us to set the pending bit for an irq Used by the MPM mainly to set the pending flag for the irq that was responsible for waking up the MSM. Change-Id: Icc72c2a51a37df11a610f69fffda9d59aff2ac2a Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
This commit is contained in:
@@ -700,5 +700,5 @@ int arch_show_interrupts(struct seq_file *p, int prec);
|
||||
extern int early_irq_init(void);
|
||||
extern int arch_probe_nr_irqs(void);
|
||||
extern int arch_early_irq_init(void);
|
||||
|
||||
extern void irq_set_pending(unsigned int irq);
|
||||
#endif
|
||||
|
||||
@@ -1484,6 +1484,19 @@ int request_any_context_irq(unsigned int irq, irq_handler_t handler,
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(request_any_context_irq);
|
||||
|
||||
void irq_set_pending(unsigned int irq)
|
||||
{
|
||||
struct irq_desc *desc = irq_to_desc(irq);
|
||||
unsigned long flags;
|
||||
|
||||
if (desc) {
|
||||
raw_spin_lock_irqsave(&desc->lock, flags);
|
||||
desc->istate |= IRQS_PENDING;
|
||||
raw_spin_unlock_irqrestore(&desc->lock, flags);
|
||||
}
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(irq_set_pending);
|
||||
|
||||
void enable_percpu_irq(unsigned int irq, unsigned int type)
|
||||
{
|
||||
unsigned int cpu = smp_processor_id();
|
||||
|
||||
Reference in New Issue
Block a user