linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3.10-rt] slab: reintroduce cpu_cache_get_on_cpu() static inline
@ 2013-10-08 18:21 Paul Gortmaker
  0 siblings, 0 replies; only message in thread
From: Paul Gortmaker @ 2013-10-08 18:21 UTC (permalink / raw)
  To: Sebastian Andrzej Siewior; +Cc: linux-rt-users, Paul Gortmaker

It was present in the 3.8-rt series, in mm-slab-wrap-functions.patch
but got dropped in the v3.10-rt series.  Without it, compile of
SLAB breaks, even for !RT_FULL builds.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
---

[Should be squashed into patches/mm-slab-wrap-functions.patch ]

 mm/slab.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/mm/slab.c b/mm/slab.c
index 0a3d6d3..b242b50 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -700,6 +700,12 @@ static inline struct array_cache *cpu_cache_get(struct kmem_cache *cachep)
 	return cachep->array[smp_processor_id()];
 }
 
+static inline struct array_cache *cpu_cache_get_on_cpu(struct kmem_cache *cachep,
+						       int cpu)
+{
+	return cachep->array[cpu];
+}
+
 static size_t slab_mgmt_size(size_t nr_objs, size_t align)
 {
 	return ALIGN(sizeof(struct slab)+nr_objs*sizeof(kmem_bufctl_t), align);
-- 
1.8.1.2


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-10-08 18:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-08 18:21 [PATCH v3.10-rt] slab: reintroduce cpu_cache_get_on_cpu() static inline Paul Gortmaker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).