[firefly] [PATCH 1/2] kernel: rcu: Make rschead_cpu extern in header.

Iulia Manda iulia.manda21 at gmail.com
Tue Mar 11 11:02:13 EET 2014


Fix better not use extern in source file tree.c. Add it in tree.h

Signed-off-by: Iulia Manda <iulia.manda21 at gmail.com>
---
 kernel/rcu/tree.h |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/kernel/rcu/tree.h b/kernel/rcu/tree.h
index 8c19873..412940f 100644
--- a/kernel/rcu/tree.h
+++ b/kernel/rcu/tree.h
@@ -319,7 +319,7 @@ struct rcu_data {
 	unsigned long n_rp_gp_started;
 	unsigned long n_rp_nocb_defer_wakeup;
 	unsigned long n_rp_need_nothing;
-
+	
 	/* 6) _rcu_barrier() and OOM callbacks. */
 	struct rcu_head barrier_head;
 #ifdef CONFIG_RCU_FAST_NO_HZ
@@ -469,6 +469,8 @@ struct rcu_state {
 #define RCU_GP_FLAG_INIT 0x1	/* Need grace-period initialization. */
 #define RCU_GP_FLAG_FQS  0x2	/* Need grace-period quiescent-state forcing. */
 
+extern void resched_cpu(int cpu);
+
 extern struct list_head rcu_struct_flavors;
 
 /* Sequence through rcu_state structures for each RCU flavor. */
-- 
1.7.10.4



More information about the firefly mailing list