]> git.karo-electronics.de Git - karo-tx-linux.git/commit
percpu: fix too low alignment restriction on UP
authorTejun Heo <tj@kernel.org>
Thu, 26 Feb 2009 01:54:17 +0000 (10:54 +0900)
committerTejun Heo <tj@kernel.org>
Thu, 26 Feb 2009 01:54:17 +0000 (10:54 +0900)
commite317603694bfd17b28a40de9d65e1a4ec12f816e
treeae286d9e1ae9ffacdd325ea76cd1d9ee88032efc
parentd2b0261506602bd969164879206027b30358ffdf
percpu: fix too low alignment restriction on UP

UP __alloc_percpu() triggered WARN_ON_ONCE() if the requested
alignment is larger than that of unsigned long long, which is too
small for all the cacheline aligned allocations.  Bump it up to
SMP_CACHE_BYTES which kmalloc allocations generally guarantee.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-by: Ingo Molnar <mingo@elte.hu>
include/linux/percpu.h