diff options
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/hrtimer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/hrtimer.c b/kernel/hrtimer.c index 7832f70f4..9268fee2f 100644 --- a/kernel/hrtimer.c +++ b/kernel/hrtimer.c @@ -243,7 +243,8 @@ again: this_cpu = smp_processor_id(); - if (cpu != this_cpu && hrtimer_check_target(timer, new_base)) { + if (cpu != this_cpu && (hrtimer_check_target(timer, new_base) + || !cpu_online(cpu))) { raw_spin_unlock(&new_base->cpu_base->lock); raw_spin_lock(&base->cpu_base->lock); cpu = smp_processor_id(); |
