projects
/
dragonfly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
5127ef5
)
objcache: Cache align magazinedepot and percpu_objcache
author
Sepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 21 Oct 2012 08:36:37 +0000 (16:36 +0800)
committer
Sepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 21 Oct 2012 08:36:37 +0000 (16:36 +0800)
sys/kern/kern_objcache.c
patch
|
blob
|
blame
|
history
diff --git
a/sys/kern/kern_objcache.c
b/sys/kern/kern_objcache.c
index
1a5fbec
..
d314888
100644
(file)
--- a/
sys/kern/kern_objcache.c
+++ b/
sys/kern/kern_objcache.c
@@
-85,7
+85,7
@@
struct magazinedepot {
* return a full magazine to
* the depot */
int contested; /* depot contention count */
-};
+} __cachealign;
/*
* per-cpu object cache
@@
-104,7
+104,7
@@
struct percpu_objcache {
/* infrequently used fields */
int waiting; /* waiting for a thread on this cpu to
* return an obj to the per-cpu cache */
-};
+} __cachealign;
/* only until we have NUMA cluster topology information XXX */
#define MAXCLUSTERS 1