[PATCH] SLOB=y && SMP=y fix
fix CONFIG_SLOB=y (when CONFIG_SMP=y): get rid of the 'align' parameter from its __alloc_percpu() implementation. Boot-tested on x86. Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
30e9656cc3
commit
9934a7939e
@@ -336,7 +336,7 @@ EXPORT_SYMBOL(slab_reclaim_pages);
|
|||||||
|
|
||||||
#ifdef CONFIG_SMP
|
#ifdef CONFIG_SMP
|
||||||
|
|
||||||
void *__alloc_percpu(size_t size, size_t align)
|
void *__alloc_percpu(size_t size)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
struct percpu_data *pdata = kmalloc(sizeof (*pdata), GFP_KERNEL);
|
struct percpu_data *pdata = kmalloc(sizeof (*pdata), GFP_KERNEL);
|
||||||
|
Reference in New Issue
Block a user