Message ID | 20200812105053.602-1-zhantao.tang@windriver.com |
---|---|
State | New |
Headers | show |
Series | [linux-5.2.y-rt,only] hrtimer: correct the logic for grab expiry lock | expand |
diff --git a/kernel/time/hrtimer.c b/kernel/time/hrtimer.c index b3adac366fd1..6b47e310c68e 100644 --- a/kernel/time/hrtimer.c +++ b/kernel/time/hrtimer.c @@ -944,7 +944,7 @@ void hrtimer_grab_expiry_lock(const struct hrtimer *timer) { struct hrtimer_clock_base *base = READ_ONCE(timer->base); - if (timer->is_soft && is_migration_base(base)) { + if (timer->is_soft && !is_migration_base(base)) { spin_lock(&base->cpu_base->softirq_expiry_lock); spin_unlock(&base->cpu_base->softirq_expiry_lock); }