Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 22458
b: refs/heads/master
c: a07fa39
h: refs/heads/master
v: v3
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Mar 22, 2006
1 parent ea58712 commit 100aa87
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 20 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: 78eef01b0fae087c5fadbd85dd4fe2918c3a015f
refs/heads/master: a07fa3944bf924881450884224cbb2f1269cb9fa
21 changes: 2 additions & 19 deletions trunk/mm/slab.c
Original file line number Diff line number Diff line change
Expand Up @@ -2119,23 +2119,6 @@ static void check_spinlock_acquired_node(struct kmem_cache *cachep, int node)
#define check_spinlock_acquired_node(x, y) do { } while(0)
#endif

/*
* Waits for all CPUs to execute func().
*/
static void smp_call_function_all_cpus(void (*func)(void *arg), void *arg)
{
check_irq_on();
preempt_disable();
local_irq_disable();
func(arg);
local_irq_enable();

if (smp_call_function(func, arg, 1, 1))
BUG();

preempt_enable();
}

static void drain_array_locked(struct kmem_cache *cachep,
struct array_cache *ac, int force, int node);

Expand All @@ -2158,7 +2141,7 @@ static void drain_cpu_caches(struct kmem_cache *cachep)
struct kmem_list3 *l3;
int node;

smp_call_function_all_cpus(do_drain, cachep);
on_each_cpu(do_drain, cachep, 1, 1);
check_irq_on();
for_each_online_node(node) {
l3 = cachep->nodelists[node];
Expand Down Expand Up @@ -3449,7 +3432,7 @@ static int do_tune_cpucache(struct kmem_cache *cachep, int limit,
}
new.cachep = cachep;

smp_call_function_all_cpus(do_ccupdate_local, (void *)&new);
on_each_cpu(do_ccupdate_local, (void *)&new, 1, 1);

check_irq_on();
cachep->batchcount = batchcount;
Expand Down

0 comments on commit 100aa87

Please sign in to comment.