/* The IRQ_NESTED_THREAD flag indicates that on request_threaded_irq() no separate interrupt thread should be created for the irq as the handler are called nested in the context of a demultiplexing interrupt handler thread.  */
void set_irq_nested_thread(unsigned int irq, int nest)
/* The IRQ_NESTED_THREAD flag indicates that on request_threaded_irq() no separate interrupt thread should be created for the irq as the handler are called nested in the context of a demultiplexing interrupt handler thread.  */
void set_irq_nested_thread(unsigned int irq, int nest)
{
	struct irq_desc *desc = irq_to_desc(irq);
	unsigned long flags;
	if (!desc)
		return;
	raw_spin_lock_irqsave(&desc->lock, flags);
	if (nest)
		desc->status |= IRQ_NESTED_THREAD;
	else
		desc->status &= ~IRQ_NESTED_THREAD;
	raw_spin_unlock_irqrestore(&desc->lock, flags);
}