summaryrefslogtreecommitdiff
path: root/include/asm-h8300
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-05-19 02:35:39 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-05-19 02:35:39 -0700
commita3e754c2e0c086dfa9e64b672d8a529ef5dfd8c2 (patch)
treeea55c70cf5cef37ad467cecfc76297b54cf9ae2d /include/asm-h8300
parent897d49be87feb06747a3538e7fbf16cdcd349b75 (diff)
[PATCH] slab: allow arch override for kmem_bufctl_t
From: Manfred Spraul <manfred@colorfullife.com> The slab allocator keeps track of the free objects in a slab with a linked list of integers (typedef'ed to kmem_bufctl_t). Right now unsigned int is used for kmem_bufctl_t, i.e. 4 bytes per-object overhead. The attached patch implements a per-arch definition of for this type: Theoretically, unsigned short is sufficient for kmem_bufctl_t and this would reduce the per-object overhead to 2 bytes. But some archs cannot operate on 16-bit values efficiently, thus it's not possible to switch everyone to ushort. The chosen types are a result of dicussions with the various arch maintainers.
Diffstat (limited to 'include/asm-h8300')
-rw-r--r--include/asm-h8300/types.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-h8300/types.h b/include/asm-h8300/types.h
index bf91e0d4dde7..21f4fc07ac0e 100644
--- a/include/asm-h8300/types.h
+++ b/include/asm-h8300/types.h
@@ -58,6 +58,8 @@ typedef u32 dma_addr_t;
#define HAVE_SECTOR_T
typedef u64 sector_t;
+typedef unsigned int kmem_bufctl_t;
+
#endif /* __KERNEL__ */
#endif /* __ASSEMBLY__ */