Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 25977
b: refs/heads/master
c: 75129e2
h: refs/heads/master
i:
  25975: dd4b558
v: v3
  • Loading branch information
John Hawkes authored and Linus Torvalds committed Apr 19, 2006
1 parent f332449 commit bf30141
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 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: 4a3b98a422a20dedf3a2a40c44892d6e7e665157
refs/heads/master: 75129e297e861e6c61038aa4cdbf604b022de4ff
10 changes: 3 additions & 7 deletions trunk/mm/slob.c
Original file line number Diff line number Diff line change
Expand Up @@ -354,9 +354,7 @@ void *__alloc_percpu(size_t size)
if (!pdata)
return NULL;

for (i = 0; i < NR_CPUS; i++) {
if (!cpu_possible(i))
continue;
for_each_possible_cpu(i) {
pdata->ptrs[i] = kmalloc(size, GFP_KERNEL);
if (!pdata->ptrs[i])
goto unwind_oom;
Expand All @@ -383,11 +381,9 @@ free_percpu(const void *objp)
int i;
struct percpu_data *p = (struct percpu_data *) (~(unsigned long) objp);

for (i = 0; i < NR_CPUS; i++) {
if (!cpu_possible(i))
continue;
for_each_possible_cpu(i)
kfree(p->ptrs[i]);
}

kfree(p);
}
EXPORT_SYMBOL(free_percpu);
Expand Down

0 comments on commit bf30141

Please sign in to comment.