|
@@ -198,7 +198,7 @@ static bool check_tick_dependency(atomic_t *dep)
|
|
|
|
|
|
static bool can_stop_full_tick(int cpu, struct tick_sched *ts)
|
|
|
{
|
|
|
- WARN_ON_ONCE(!irqs_disabled());
|
|
|
+ lockdep_assert_irqs_disabled();
|
|
|
|
|
|
if (unlikely(!cpu_online(cpu)))
|
|
|
return false;
|
|
@@ -960,8 +960,7 @@ void tick_nohz_idle_enter(void)
|
|
|
{
|
|
|
struct tick_sched *ts;
|
|
|
|
|
|
- WARN_ON_ONCE(irqs_disabled());
|
|
|
-
|
|
|
+ lockdep_assert_irqs_enabled();
|
|
|
/*
|
|
|
* Update the idle state in the scheduler domain hierarchy
|
|
|
* when tick_nohz_stop_sched_tick() is called from the idle loop.
|