summaryrefslogtreecommitdiffstats
path: root/kernel/time/tick-sched.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/time/tick-sched.c')
-rw-r--r--kernel/time/tick-sched.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c
index c7a899c5ce64..dd4b7b492c9b 100644
--- a/kernel/time/tick-sched.c
+++ b/kernel/time/tick-sched.c
@@ -198,7 +198,7 @@ static bool check_tick_dependency(atomic_t *dep)
198 198
199static bool can_stop_full_tick(int cpu, struct tick_sched *ts) 199static bool can_stop_full_tick(int cpu, struct tick_sched *ts)
200{ 200{
201 WARN_ON_ONCE(!irqs_disabled()); 201 lockdep_assert_irqs_disabled();
202 202
203 if (unlikely(!cpu_online(cpu))) 203 if (unlikely(!cpu_online(cpu)))
204 return false; 204 return false;
@@ -960,8 +960,7 @@ void tick_nohz_idle_enter(void)
960{ 960{
961 struct tick_sched *ts; 961 struct tick_sched *ts;
962 962
963 WARN_ON_ONCE(irqs_disabled()); 963 lockdep_assert_irqs_enabled();
964
965 /* 964 /*
966 * Update the idle state in the scheduler domain hierarchy 965 * Update the idle state in the scheduler domain hierarchy
967 * when tick_nohz_stop_sched_tick() is called from the idle loop. 966 * when tick_nohz_stop_sched_tick() is called from the idle loop.