summaryrefslogtreecommitdiff
path: root/mm/slab.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2012-10-25 09:32:35 (GMT)
committerScott Wood <scottwood@freescale.com>2014-04-10 00:19:01 (GMT)
commit0ded3f0df43579f5d190566490fda3a810ba27f9 (patch)
treefc4b520d9f0b57632a27c47270e2c5c94f5f5194 /mm/slab.h
parentd0a5eefa8a8d0188cfa13f3474ae54c2b28e1f67 (diff)
downloadlinux-fsl-qoriq-0ded3f0df43579f5d190566490fda3a810ba27f9.tar.xz
mm: Enable SLUB for RT
Make SLUB RT aware and remove the restriction in Kconfig. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'mm/slab.h')
-rw-r--r--mm/slab.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/mm/slab.h b/mm/slab.h
index a535033..8ffb287 100644
--- a/mm/slab.h
+++ b/mm/slab.h
@@ -247,7 +247,11 @@ static inline struct kmem_cache *cache_from_obj(struct kmem_cache *s, void *x)
* The slab lists for all objects.
*/
struct kmem_cache_node {
+#ifdef CONFIG_SLUB
+ raw_spinlock_t list_lock;
+#else
spinlock_t list_lock;
+#endif
#ifdef CONFIG_SLAB
struct list_head slabs_partial; /* partial list first, better asm code */