diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/time/tick-broadcast.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/kernel/time/tick-broadcast.c b/kernel/time/tick-broadcast.c index d067c01586f5..4790037163f6 100644 --- a/kernel/time/tick-broadcast.c +++ b/kernel/time/tick-broadcast.c | |||
@@ -533,6 +533,13 @@ again: | |||
533 | cpumask_clear(tick_broadcast_force_mask); | 533 | cpumask_clear(tick_broadcast_force_mask); |
534 | 534 | ||
535 | /* | 535 | /* |
536 | * Sanity check. Catch the case where we try to broadcast to | ||
537 | * offline cpus. | ||
538 | */ | ||
539 | if (WARN_ON_ONCE(!cpumask_subset(tmpmask, cpu_online_mask))) | ||
540 | cpumask_and(tmpmask, tmpmask, cpu_online_mask); | ||
541 | |||
542 | /* | ||
536 | * Wakeup the cpus which have an expired event. | 543 | * Wakeup the cpus which have an expired event. |
537 | */ | 544 | */ |
538 | tick_do_broadcast(tmpmask); | 545 | tick_do_broadcast(tmpmask); |
@@ -773,10 +780,12 @@ void tick_shutdown_broadcast_oneshot(unsigned int *cpup) | |||
773 | raw_spin_lock_irqsave(&tick_broadcast_lock, flags); | 780 | raw_spin_lock_irqsave(&tick_broadcast_lock, flags); |
774 | 781 | ||
775 | /* | 782 | /* |
776 | * Clear the broadcast mask flag for the dead cpu, but do not | 783 | * Clear the broadcast masks for the dead cpu, but do not stop |
777 | * stop the broadcast device! | 784 | * the broadcast device! |
778 | */ | 785 | */ |
779 | cpumask_clear_cpu(cpu, tick_broadcast_oneshot_mask); | 786 | cpumask_clear_cpu(cpu, tick_broadcast_oneshot_mask); |
787 | cpumask_clear_cpu(cpu, tick_broadcast_pending_mask); | ||
788 | cpumask_clear_cpu(cpu, tick_broadcast_force_mask); | ||
780 | 789 | ||
781 | raw_spin_unlock_irqrestore(&tick_broadcast_lock, flags); | 790 | raw_spin_unlock_irqrestore(&tick_broadcast_lock, flags); |
782 | } | 791 | } |