Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 139617
b: refs/heads/master
c: 98f4ebb
h: refs/heads/master
i:
  139615: ed9d767
v: v3
  • Loading branch information
Anton Blanchard authored and Linus Torvalds committed Apr 3, 2009
1 parent 9f85363 commit 3238301
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d2caa3c549c74d6476e2c29e13bd4d0e7d21c7fe
refs/heads/master: 98f4ebb290a7dca8c48f27ec1d2cab8fa7982dad
5 changes: 3 additions & 2 deletions trunk/mm/vmstat.c
Original file line number Diff line number Diff line change
Expand Up @@ -891,15 +891,16 @@ static void vmstat_update(struct work_struct *w)
{
refresh_cpu_vm_stats(smp_processor_id());
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)
{
struct delayed_work *vmstat_work = &per_cpu(vmstat_work, cpu);

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));
}

/*
Expand Down

0 comments on commit 3238301

Please sign in to comment.