diff options
Diffstat (limited to 'mm')
-rw-r--r-- | mm/vmstat.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mm/vmstat.c b/mm/vmstat.c index 9d824643a22f..006eb7621869 100644 --- a/mm/vmstat.c +++ b/mm/vmstat.c | |||
@@ -641,11 +641,13 @@ const struct seq_operations vmstat_op = { | |||
641 | 641 | ||
642 | #ifdef CONFIG_SMP | 642 | #ifdef CONFIG_SMP |
643 | static DEFINE_PER_CPU(struct delayed_work, vmstat_work); | 643 | static DEFINE_PER_CPU(struct delayed_work, vmstat_work); |
644 | int sysctl_stat_interval __read_mostly = HZ; | ||
644 | 645 | ||
645 | static void vmstat_update(struct work_struct *w) | 646 | static void vmstat_update(struct work_struct *w) |
646 | { | 647 | { |
647 | refresh_cpu_vm_stats(smp_processor_id()); | 648 | refresh_cpu_vm_stats(smp_processor_id()); |
648 | schedule_delayed_work(&__get_cpu_var(vmstat_work), HZ); | 649 | schedule_delayed_work(&__get_cpu_var(vmstat_work), |
650 | sysctl_stat_interval); | ||
649 | } | 651 | } |
650 | 652 | ||
651 | static void __devinit start_cpu_timer(int cpu) | 653 | static void __devinit start_cpu_timer(int cpu) |