Reapply "mm: Add likelihood labels to quiet_vmstat conditions"

This reverts commit 46ff115435.
This commit is contained in:
Ksawlii 2024-12-18 11:24:38 +01:00
parent 55d2e44b8e
commit 357b4c015c

View file

@ -1922,13 +1922,13 @@ static bool need_update(int cpu)
*/
void quiet_vmstat(void)
{
if (system_state != SYSTEM_RUNNING)
if (unlikely(system_state != SYSTEM_RUNNING))
return;
if (!delayed_work_pending(this_cpu_ptr(&vmstat_work)))
return;
if (!need_update(smp_processor_id()))
if (likely(!need_update(smp_processor_id())))
return;
/*