Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 44017
b: refs/heads/master
c: 2b28421
h: refs/heads/master
i:
  44015: 0628999
v: v3
  • Loading branch information
Arjan van de Ven authored and Linus Torvalds committed Dec 10, 2006
1 parent a828304 commit 57df53f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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: 44d306e1508fef6fa7a6eb15a1aba86ef68389a6
refs/heads/master: 2b2842146cb4105877c2be51d3857ec61ebd4ff9
8 changes: 5 additions & 3 deletions trunk/mm/slab.c
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,8 @@ static void __devinit start_cpu_timer(int cpu)
if (keventd_up() && reap_work->work.func == NULL) {
init_reap_node(cpu);
INIT_DELAYED_WORK(reap_work, cache_reap);
schedule_delayed_work_on(cpu, reap_work, HZ + 3 * cpu);
schedule_delayed_work_on(cpu, reap_work,
__round_jiffies_relative(HZ, cpu));
}
}

Expand Down Expand Up @@ -4006,7 +4007,7 @@ static void cache_reap(struct work_struct *unused)
if (!mutex_trylock(&cache_chain_mutex)) {
/* Give up. Setup the next iteration. */
schedule_delayed_work(&__get_cpu_var(reap_work),
REAPTIMEOUT_CPUC);
round_jiffies_relative(REAPTIMEOUT_CPUC));
return;
}

Expand Down Expand Up @@ -4052,7 +4053,8 @@ static void cache_reap(struct work_struct *unused)
next_reap_node();
refresh_cpu_vm_stats(smp_processor_id());
/* Set up the next iteration */
schedule_delayed_work(&__get_cpu_var(reap_work), REAPTIMEOUT_CPUC);
schedule_delayed_work(&__get_cpu_var(reap_work),
round_jiffies_relative(REAPTIMEOUT_CPUC));
}

#ifdef CONFIG_PROC_FS
Expand Down

0 comments on commit 57df53f

Please sign in to comment.