Skip to content

Commit

Permalink
MIPS: TX49xx: Define ARCH_KMALLOC_MINALIGN
Browse files Browse the repository at this point in the history
With SLAB, it works without ARCH_KMALLOC_MINALIGN, but with SLOB/SLUB,
ARCH_KMALLOC_MINALIGN is required to ensure alignment of kmalloced
buffer.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
To: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/1248/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Atsushi Nemoto authored and Ralf Baechle committed Aug 5, 2010
1 parent 26692f5 commit 40cb989
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions arch/mips/include/asm/mach-tx49xx/kmalloc.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#ifndef __ASM_MACH_TX49XX_KMALLOC_H
#define __ASM_MACH_TX49XX_KMALLOC_H

/*
* All happy, no need to define ARCH_KMALLOC_MINALIGN
*/
#define ARCH_KMALLOC_MINALIGN L1_CACHE_BYTES

#endif /* __ASM_MACH_TX49XX_KMALLOC_H */

0 comments on commit 40cb989

Please sign in to comment.