aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJoonsoo Kim <[email protected]>2014-10-09 15:26:00 -0700
committerLinus Torvalds <[email protected]>2014-10-09 22:25:50 -0400
commit07f361b2bee38896df8be17d8c3f8af3f3610606 (patch)
tree11a32316c31f5b85551cfce61a5d99d08e1af55d /tools/perf/scripts/python
parent3aa24f519e48e0db0ccf198d1b766a61d9463ce6 (diff)
mm/slab_common: move kmem_cache definition to internal header
We don't need to keep kmem_cache definition in include/linux/slab.h if we don't need to inline kmem_cache_size(). According to my code inspection, this function is only called at lc_create() in lib/lru_cache.c which may be called at initialization phase of something, so we don't need to inline it. Therfore, move it to slab_common.c and move kmem_cache definition to internal header. After this change, we can change kmem_cache definition easily without full kernel build. For instance, we can turn on/off CONFIG_SLUB_STATS without full kernel build. [[email protected]: export kmem_cache_size() to modules] [[email protected]: add header files to fix kmemcheck.c build errors] Signed-off-by: Joonsoo Kim <[email protected]> Acked-by: Christoph Lameter <[email protected]> Cc: Pekka Enberg <[email protected]> Cc: David Rientjes <[email protected]> Cc: Zhang Yanfei <[email protected]> Signed-off-by: Randy Dunlap <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions