|
@@ -891,7 +891,7 @@ static void vmstat_update(struct work_struct *w)
|
|
{
|
|
{
|
|
refresh_cpu_vm_stats(smp_processor_id());
|
|
refresh_cpu_vm_stats(smp_processor_id());
|
|
schedule_delayed_work(&__get_cpu_var(vmstat_work),
|
|
schedule_delayed_work(&__get_cpu_var(vmstat_work),
|
|
- sysctl_stat_interval);
|
|
|
|
|
|
+ round_jiffies_relative(sysctl_stat_interval));
|
|
}
|
|
}
|
|
|
|
|
|
static void __cpuinit start_cpu_timer(int cpu)
|
|
static void __cpuinit start_cpu_timer(int cpu)
|
|
@@ -899,7 +899,8 @@ static void __cpuinit start_cpu_timer(int cpu)
|
|
struct delayed_work *vmstat_work = &per_cpu(vmstat_work, cpu);
|
|
struct delayed_work *vmstat_work = &per_cpu(vmstat_work, cpu);
|
|
|
|
|
|
INIT_DELAYED_WORK_DEFERRABLE(vmstat_work, vmstat_update);
|
|
INIT_DELAYED_WORK_DEFERRABLE(vmstat_work, vmstat_update);
|
|
- schedule_delayed_work_on(cpu, vmstat_work, HZ + cpu);
|
|
|
|
|
|
+ schedule_delayed_work_on(cpu, vmstat_work,
|
|
|
|
+ __round_jiffies_relative(HZ, cpu));
|
|
}
|
|
}
|
|
|
|
|
|
/*
|
|
/*
|