aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rcutiny.c
diff options
context:
space:
mode:
authorPaul E. McKenney <paul.mckenney@linaro.org>2011-06-21 03:13:44 -0400
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2011-09-29 00:38:14 -0400
commite99033c5c160f1f247c665923a66acec693a967c (patch)
treec5b0863ad4b673134070872a159055237186f0fe /kernel/rcutiny.c
parent300df91ca9358f7f09298eec9503c12b32054ef7 (diff)
rcu: Put names into TINY_RCU structures under RCU_TRACE
In order to allow event tracing to distinguish between flavors of RCU, we need those names in the relevant RCU data structures. TINY_RCU has avoided them for memory-footprint reasons, so add them only if CONFIG_RCU_TRACE=y. Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/rcutiny.c')
-rw-r--r--kernel/rcutiny.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/kernel/rcutiny.c b/kernel/rcutiny.c
index 19453ba1392e..0d28974b78f4 100644
--- a/kernel/rcutiny.c
+++ b/kernel/rcutiny.c
@@ -38,20 +38,7 @@
38#include <linux/prefetch.h> 38#include <linux/prefetch.h>
39 39
40#ifdef CONFIG_RCU_TRACE 40#ifdef CONFIG_RCU_TRACE
41
42#include <trace/events/rcu.h> 41#include <trace/events/rcu.h>
43
44#else /* #ifdef CONFIG_RCU_TRACE */
45
46/* No by-default tracing in TINY_RCU: Keep TINY_RCU tiny! */
47static void trace_rcu_invoke_kfree_callback(struct rcu_head *rhp,
48 unsigned long offset)
49{
50}
51static void trace_rcu_invoke_callback(struct rcu_head *head)
52{
53}
54
55#endif /* #else #ifdef CONFIG_RCU_TRACE */ 42#endif /* #else #ifdef CONFIG_RCU_TRACE */
56 43
57#include "rcu.h" 44#include "rcu.h"