diff options
| -rw-r--r-- | kernel/softirq.c | 2 | ||||
| -rw-r--r-- | kernel/time/tick-sched.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/kernel/softirq.c b/kernel/softirq.c index 75ffc1d1a2e0..6f584861d329 100644 --- a/kernel/softirq.c +++ b/kernel/softirq.c | |||
| @@ -390,7 +390,7 @@ static inline void tick_irq_exit(void) | |||
| 390 | 390 | ||
| 391 | /* Make sure that timer wheel updates are propagated */ | 391 | /* Make sure that timer wheel updates are propagated */ |
| 392 | if ((idle_cpu(cpu) && !need_resched()) || tick_nohz_full_cpu(cpu)) { | 392 | if ((idle_cpu(cpu) && !need_resched()) || tick_nohz_full_cpu(cpu)) { |
| 393 | if (!in_interrupt()) | 393 | if (!in_irq()) |
| 394 | tick_nohz_irq_exit(); | 394 | tick_nohz_irq_exit(); |
| 395 | } | 395 | } |
| 396 | #endif | 396 | #endif |
diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c index da9455a6b42b..5b33e2f5c0ed 100644 --- a/kernel/time/tick-sched.c +++ b/kernel/time/tick-sched.c | |||
| @@ -642,7 +642,7 @@ static void tick_nohz_restart(struct tick_sched *ts, ktime_t now) | |||
| 642 | 642 | ||
| 643 | static inline bool local_timer_softirq_pending(void) | 643 | static inline bool local_timer_softirq_pending(void) |
| 644 | { | 644 | { |
| 645 | return local_softirq_pending() & TIMER_SOFTIRQ; | 645 | return local_softirq_pending() & BIT(TIMER_SOFTIRQ); |
| 646 | } | 646 | } |
| 647 | 647 | ||
| 648 | static ktime_t tick_nohz_next_event(struct tick_sched *ts, int cpu) | 648 | static ktime_t tick_nohz_next_event(struct tick_sched *ts, int cpu) |
