diff --git a/mm/vmstat.c b/mm/vmstat.c index 21eda92e0..5267c4e03 100755 --- a/mm/vmstat.c +++ b/mm/vmstat.c @@ -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; /*