summaryrefslogtreecommitdiff
path: root/kern
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2014-01-09 12:05:01 +0100
committerJustus Winter <4winter@informatik.uni-hamburg.de>2014-01-09 12:06:58 +0100
commit84c4437004d9c4767da56500661f49afe4582658 (patch)
tree0a564e9777ca9821209806ea03db78060deb10a0 /kern
parent79ed64e24d2276a9a28ec9c3e0eedd23812c93da (diff)
kern: align kmem_cache objects using __cacheline_aligned
* kern/slab.h (struct kmem_cache): Align kmem_cache objects using __cacheline_aligned.
Diffstat (limited to 'kern')
-rw-r--r--kern/slab.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/kern/slab.h b/kern/slab.h
index 457dee4..c7be169 100644
--- a/kern/slab.h
+++ b/kern/slab.h
@@ -47,6 +47,7 @@
#ifndef _KERN_SLAB_H
#define _KERN_SLAB_H
+#include <cache.h>
#include <kern/lock.h>
#include <kern/list.h>
#include <kern/rbtree.h>
@@ -196,7 +197,7 @@ struct kmem_cache {
char name[KMEM_CACHE_NAME_SIZE];
size_t buftag_dist; /* Distance from buffer to buftag */
size_t redzone_pad; /* Bytes from end of object to redzone word */
-};
+} __cacheline_aligned;
/*
* Mach-style declarations for struct kmem_cache.