Revert "vmstat: disable vmstat_work on vmstat_cpu_down_prep()"
Changes
1 files changed · +1 −2
| File | Status | Add | Del | Content |
|---|---|---|---|---|
| mm/vmstat.c | modified | +1 | −2 | View file |
mm/vmstat.c
View filediff --git a/mm/vmstat.c b/mm/vmstat.c
index 0889b75..4d01631 100644
--- a/mm/vmstat.c
+++ b/mm/vmstat.c
@@ -2148,14 +2148,13 @@ static int vmstat_cpu_online(unsigned int cpu)
if (!node_state(cpu_to_node(cpu), N_CPU)) {
node_set_state(cpu_to_node(cpu), N_CPU);
}
- enable_delayed_work(&per_cpu(vmstat_work, cpu));
return 0;
}
static int vmstat_cpu_down_prep(unsigned int cpu)
{
- disable_delayed_work_sync(&per_cpu(vmstat_work, cpu));
+ cancel_delayed_work_sync(&per_cpu(vmstat_work, cpu));
return 0;
}