]> git.baikalelectronics.ru Git - kernel.git/commit
s390/numa: allocate memory with correct alignment
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Fri, 15 Jan 2016 13:50:25 +0000 (14:50 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 19 Jan 2016 11:14:01 +0000 (12:14 +0100)
commit9cab9eb796ee8d8f47dda3a562a75f3f4cd5cbc9
treeb002f11020df052fc9ad38491739f54695dfa881
parentb3b8ffed177168d4f0336ad07702b6b49819d34f
s390/numa: allocate memory with correct alignment

Allocating memory with a requested minimum alignment of 1 is wrong
since pg_data_t contains a spinlock which requires an alignment of 4
bytes.

Therefore fix this and ask for an alignment of 8 bytes like it is
guarenteed for all kmalloc requests.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Acked-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/numa/numa.c