diff options
Diffstat (limited to 'kernel/module.c')
-rw-r--r-- | kernel/module.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/module.c b/kernel/module.c index cf49ca25fcce..4dc4a257545c 100644 --- a/kernel/module.c +++ b/kernel/module.c | |||
@@ -346,10 +346,10 @@ static void *percpu_modalloc(unsigned long size, unsigned long align, | |||
346 | unsigned int i; | 346 | unsigned int i; |
347 | void *ptr; | 347 | void *ptr; |
348 | 348 | ||
349 | if (align > SMP_CACHE_BYTES) { | 349 | if (align > PAGE_SIZE) { |
350 | printk(KERN_WARNING "%s: per-cpu alignment %li > %i\n", | 350 | printk(KERN_WARNING "%s: per-cpu alignment %li > %li\n", |
351 | name, align, SMP_CACHE_BYTES); | 351 | name, align, PAGE_SIZE); |
352 | align = SMP_CACHE_BYTES; | 352 | align = PAGE_SIZE; |
353 | } | 353 | } |
354 | 354 | ||
355 | ptr = __per_cpu_start; | 355 | ptr = __per_cpu_start; |