mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
Make vm statistics update interval configurable
Make it configurable. Code in mm makes the vm statistics intervals independent from the cache reaper use that opportunity to make it configurable. Signed-off-by: Christoph Lameter <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
d1187ed210
commit
77461ab332
2 changed files with 15 additions and 1 deletions
|
|
@ -641,11 +641,13 @@ const struct seq_operations vmstat_op = {
|
|||
|
||||
#ifdef CONFIG_SMP
|
||||
static DEFINE_PER_CPU(struct delayed_work, vmstat_work);
|
||||
int sysctl_stat_interval __read_mostly = HZ;
|
||||
|
||||
static void vmstat_update(struct work_struct *w)
|
||||
{
|
||||
refresh_cpu_vm_stats(smp_processor_id());
|
||||
schedule_delayed_work(&__get_cpu_var(vmstat_work), HZ);
|
||||
schedule_delayed_work(&__get_cpu_var(vmstat_work),
|
||||
sysctl_stat_interval);
|
||||
}
|
||||
|
||||
static void __devinit start_cpu_timer(int cpu)
|
||||
|
|
|
|||
Loading…
Reference in a new issue