Merge branches 'irq-urgent-for-linus' and 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull irq and timer fixes from Thomas Gleixner: - An irq regression fix to restore the wakeup behaviour of chained interrupts. - A timer fix for a long standing race versus timers scheduled on a target cpu which got exposed by recent changes in the workqueue implementation. * 'irq-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: genirq/PM: Restore system wake up from chained interrupts * 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: timers: Use proper base migration in add_timer_on()
This commit is contained in:
@@ -199,6 +199,11 @@ static inline int irq_desc_get_node(struct irq_desc *desc)
|
||||
return irq_common_data_get_node(&desc->irq_common_data);
|
||||
}
|
||||
|
||||
static inline int irq_desc_is_chained(struct irq_desc *desc)
|
||||
{
|
||||
return (desc->action && desc->action == &chained_action);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PM_SLEEP
|
||||
bool irq_pm_check_wakeup(struct irq_desc *desc);
|
||||
void irq_pm_install_action(struct irq_desc *desc, struct irqaction *action);
|
||||
|
@@ -70,7 +70,8 @@ void irq_pm_remove_action(struct irq_desc *desc, struct irqaction *action)
|
||||
|
||||
static bool suspend_device_irq(struct irq_desc *desc)
|
||||
{
|
||||
if (!desc->action || desc->no_suspend_depth)
|
||||
if (!desc->action || irq_desc_is_chained(desc) ||
|
||||
desc->no_suspend_depth)
|
||||
return false;
|
||||
|
||||
if (irqd_is_wakeup_set(&desc->irq_data)) {
|
||||
|
@@ -475,7 +475,7 @@ int show_interrupts(struct seq_file *p, void *v)
|
||||
for_each_online_cpu(j)
|
||||
any_count |= kstat_irqs_cpu(i, j);
|
||||
action = desc->action;
|
||||
if ((!action || action == &chained_action) && !any_count)
|
||||
if ((!action || irq_desc_is_chained(desc)) && !any_count)
|
||||
goto out;
|
||||
|
||||
seq_printf(p, "%*d: ", prec, i);
|
||||
|
Reference in New Issue
Block a user