Reapply "mm: Add likelihood labels to quiet_vmstat conditions"
This reverts commit 46ff115435
.
This commit is contained in:
parent
55d2e44b8e
commit
357b4c015c
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Reference in a new issue