summaryrefslogtreecommitdiffstats
path: root/include/linux/rcutree.h
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2011-05-04 16:31:03 +0300
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2011-05-05 23:16:59 -0700
commit29ce831000081dd757d3116bf774aafffc4b6b20 (patch)
tree0b992d993b02d3479a150e9fc508d110dc45631d /include/linux/rcutree.h
parentbad6e1393cb505fe17747344a23666464daa3fa7 (diff)
downloadop-kernel-dev-29ce831000081dd757d3116bf774aafffc4b6b20.zip
op-kernel-dev-29ce831000081dd757d3116bf774aafffc4b6b20.tar.gz
rcu: provide rcu_virt_note_context_switch() function.
Provide rcu_virt_note_context_switch() for vitalization use to note quiescent state during guest entry. Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'include/linux/rcutree.h')
-rw-r--r--include/linux/rcutree.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/rcutree.h b/include/linux/rcutree.h
index 284dad1..e65d066 100644
--- a/include/linux/rcutree.h
+++ b/include/linux/rcutree.h
@@ -35,6 +35,16 @@ extern void rcu_note_context_switch(int cpu);
extern int rcu_needs_cpu(int cpu);
extern void rcu_cpu_stall_reset(void);
+/*
+ * Note a virtualization-based context switch. This is simply a
+ * wrapper around rcu_note_context_switch(), which allows TINY_RCU
+ * to save a few bytes.
+ */
+static inline void rcu_virt_note_context_switch(int cpu)
+{
+ rcu_note_context_switch(cpu);
+}
+
#ifdef CONFIG_TREE_PREEMPT_RCU
extern void exit_rcu(void);
OpenPOWER on IntegriCloud