summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Gortmaker <paul.gortmaker@windriver.com>2016-12-25 09:50:07 -0500
committerPaul Gortmaker <paul.gortmaker@windriver.com>2016-12-25 09:50:07 -0500
commitcaf831fdc67bd128858650c19eb1354672507677 (patch)
tree16a403ed7f0d5cbd8642e880e41e4a27b58effcf
parent420f69c356506a3d8b531443e66685b3a3791706 (diff)
download4.9-rt-patches-caf831fdc67bd128858650c19eb1354672507677.tar.gz
rcu: import basic refresh (x2)rt-v4.8-304-g4b978934a440
-rw-r--r--patches/patch-to-introduce-rcu-bh-qs-where-safe-from-softirq.patch4
-rw-r--r--patches/rcu-merge-rcu-bh-into-rcu-preempt-for-rt.patch32
2 files changed, 18 insertions, 18 deletions
diff --git a/patches/patch-to-introduce-rcu-bh-qs-where-safe-from-softirq.patch b/patches/patch-to-introduce-rcu-bh-qs-where-safe-from-softirq.patch
index 7d85b3eb3365f5..9b870f1cb9a20e 100644
--- a/patches/patch-to-introduce-rcu-bh-qs-where-safe-from-softirq.patch
+++ b/patches/patch-to-introduce-rcu-bh-qs-where-safe-from-softirq.patch
@@ -41,10 +41,10 @@ Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-#endif
void rcu_check_callbacks(int user);
void rcu_report_dead(unsigned int cpu);
-
+ void rcu_cpu_starting(unsigned int cpu);
--- a/kernel/rcu/tree.c
+++ b/kernel/rcu/tree.c
-@@ -259,7 +259,14 @@ void rcu_sched_qs(void)
+@@ -257,7 +257,14 @@ void rcu_sched_qs(void)
this_cpu_ptr(&rcu_sched_data), true);
}
diff --git a/patches/rcu-merge-rcu-bh-into-rcu-preempt-for-rt.patch b/patches/rcu-merge-rcu-bh-into-rcu-preempt-for-rt.patch
index 4c35a15d2d425a..5af9b286916233 100644
--- a/patches/rcu-merge-rcu-bh-into-rcu-preempt-for-rt.patch
+++ b/patches/rcu-merge-rcu-bh-into-rcu-preempt-for-rt.patch
@@ -63,8 +63,8 @@ Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
+#endif
void rcu_check_callbacks(int user);
void rcu_report_dead(unsigned int cpu);
-
-@@ -508,7 +516,14 @@ extern struct lockdep_map rcu_callback_m
+ void rcu_cpu_starting(unsigned int cpu);
+@@ -509,7 +517,14 @@ extern struct lockdep_map rcu_callback_m
int debug_lockdep_rcu_enabled(void);
int rcu_read_lock_held(void);
@@ -79,7 +79,7 @@ Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
/**
* rcu_read_lock_sched_held() - might we be in RCU-sched read-side critical section?
-@@ -906,10 +921,14 @@ static inline void rcu_read_unlock(void)
+@@ -907,10 +922,14 @@ static inline void rcu_read_unlock(void)
static inline void rcu_read_lock_bh(void)
{
local_bh_disable();
@@ -94,7 +94,7 @@ Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
}
/*
-@@ -919,10 +938,14 @@ static inline void rcu_read_lock_bh(void
+@@ -920,10 +939,14 @@ static inline void rcu_read_lock_bh(void
*/
static inline void rcu_read_unlock_bh(void)
{
@@ -195,7 +195,7 @@ Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* The names includes "busted", and they really means it!
--- a/kernel/rcu/tree.c
+++ b/kernel/rcu/tree.c
-@@ -259,6 +259,7 @@ void rcu_sched_qs(void)
+@@ -257,6 +257,7 @@ void rcu_sched_qs(void)
this_cpu_ptr(&rcu_sched_data), true);
}
@@ -203,7 +203,7 @@ Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
void rcu_bh_qs(void)
{
if (__this_cpu_read(rcu_bh_data.cpu_no_qs.s)) {
-@@ -268,6 +269,7 @@ void rcu_bh_qs(void)
+@@ -266,6 +267,7 @@ void rcu_bh_qs(void)
__this_cpu_write(rcu_bh_data.cpu_no_qs.b.norm, false);
}
}
@@ -211,7 +211,7 @@ Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
static DEFINE_PER_CPU(int, rcu_sched_qs_mask);
-@@ -448,11 +450,13 @@ EXPORT_SYMBOL_GPL(rcu_batches_started_sc
+@@ -446,11 +448,13 @@ EXPORT_SYMBOL_GPL(rcu_batches_started_sc
/*
* Return the number of RCU BH batches started thus far for debug & stats.
*/
@@ -225,7 +225,7 @@ Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
/*
* Return the number of RCU batches completed thus far for debug & stats.
-@@ -472,6 +476,7 @@ unsigned long rcu_batches_completed_sche
+@@ -470,6 +474,7 @@ unsigned long rcu_batches_completed_sche
}
EXPORT_SYMBOL_GPL(rcu_batches_completed_sched);
@@ -233,7 +233,7 @@ Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
/*
* Return the number of RCU BH batches completed thus far for debug & stats.
*/
-@@ -480,6 +485,7 @@ unsigned long rcu_batches_completed_bh(v
+@@ -478,6 +483,7 @@ unsigned long rcu_batches_completed_bh(v
return rcu_bh_state.completed;
}
EXPORT_SYMBOL_GPL(rcu_batches_completed_bh);
@@ -241,7 +241,7 @@ Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
/*
* Return the number of RCU expedited batches completed thus far for
-@@ -503,6 +509,7 @@ unsigned long rcu_exp_batches_completed_
+@@ -501,6 +507,7 @@ unsigned long rcu_exp_batches_completed_
}
EXPORT_SYMBOL_GPL(rcu_exp_batches_completed_sched);
@@ -249,7 +249,7 @@ Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
/*
* Force a quiescent state.
*/
-@@ -521,6 +528,13 @@ void rcu_bh_force_quiescent_state(void)
+@@ -519,6 +526,13 @@ void rcu_bh_force_quiescent_state(void)
}
EXPORT_SYMBOL_GPL(rcu_bh_force_quiescent_state);
@@ -263,7 +263,7 @@ Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
/*
* Force a quiescent state for RCU-sched.
*/
-@@ -571,9 +585,11 @@ void rcutorture_get_gp_data(enum rcutort
+@@ -569,9 +583,11 @@ void rcutorture_get_gp_data(enum rcutort
case RCU_FLAVOR:
rsp = rcu_state_p;
break;
@@ -323,7 +323,7 @@ Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
/**
* rcu_barrier_sched - Wait for in-flight call_rcu_sched() callbacks.
-@@ -4196,7 +4218,9 @@ void __init rcu_init(void)
+@@ -4220,7 +4242,9 @@ void __init rcu_init(void)
rcu_bootup_announce();
rcu_init_geometry();
@@ -335,7 +335,7 @@ Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
rcu_dump_rcu_node_tree(&rcu_sched_state);
--- a/kernel/rcu/tree.h
+++ b/kernel/rcu/tree.h
-@@ -587,7 +587,9 @@ extern struct list_head rcu_struct_flavo
+@@ -588,7 +588,9 @@ extern struct list_head rcu_struct_flavo
*/
extern struct rcu_state rcu_sched_state;
@@ -347,7 +347,7 @@ Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
extern struct rcu_state rcu_preempt_state;
--- a/kernel/rcu/update.c
+++ b/kernel/rcu/update.c
-@@ -293,6 +293,7 @@ int rcu_read_lock_held(void)
+@@ -292,6 +292,7 @@ int rcu_read_lock_held(void)
}
EXPORT_SYMBOL_GPL(rcu_read_lock_held);
@@ -355,7 +355,7 @@ Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
/**
* rcu_read_lock_bh_held() - might we be in RCU-bh read-side critical section?
*
-@@ -319,6 +320,7 @@ int rcu_read_lock_bh_held(void)
+@@ -318,6 +319,7 @@ int rcu_read_lock_bh_held(void)
return in_softirq() || irqs_disabled();
}
EXPORT_SYMBOL_GPL(rcu_read_lock_bh_held);