diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c index e80183f4a6c4f3d6abea4b6d7720e381381259e0..1102534a1a575919a2aca4e87630fedc72ca4609 100644 --- a/kernel/time/tick-sched.c +++ b/kernel/time/tick-sched.c @@ -182,7 +182,8 @@ static bool can_stop_full_tick(void) * Don't allow the user to think they can get * full NO_HZ with this machine. */ - WARN_ONCE(1, "NO_HZ FULL will not work with unstable sched clock"); + WARN_ONCE(have_nohz_full_mask, + "NO_HZ FULL will not work with unstable sched clock"); return false; } #endif