Skip to contentSkip to conversation

rcu: remove rcu_user_hooks_switch

PATCH In review Yang Shi 3 participants 4 messages Oct 19, 2015 – Oct 20, 2015 RCU

lore
Share & tools
lore

Yang Shi

author
#0 lore raw

PATCH 1/1 rcu: remove rcu_user_hooks_switch

It is not invoked by anyone now, just remove it.

---
 include/linux/rcupdate.h | 2 --
 1 file changed, 2 deletions(-)
include/linux/rcupdate.h +0 -2
index 581abf8..56355bc 100644
@@ -345,8 +345,6 @@ void rcu_user_exit(void);
 #else
 static inline void rcu_user_enter(void) { }
 static inline void rcu_user_exit(void) { }
-static inline void rcu_user_hooks_switch(struct task_struct *prev,
-					 struct task_struct *next) { }
 #endif /* CONFIG_NO_HZ_FULL */
 
 #ifdef CONFIG_RCU_NOCB_CPU
Signature · 1 line
2.0.2
#1 lore raw
Quoted 3 lines · Yang Shi

It is not invoked by anyone now, just remove it.

We should check with Frederic -- any plans to use this, Frederic? It was last touched by commit 4d9a5d4319e2 (rcu: Remove rcu_switch()) back in 2012.

Thanx, Paul

Quoted 20 lines
---
 include/linux/rcupdate.h | 2 --
 1 file changed, 2 deletions(-)
include/linux/rcupdate.h +0 -2
index 581abf8..56355bc 100644
@@ -345,8 +345,6 @@ void rcu_user_exit(void);
 #else
 static inline void rcu_user_enter(void) { }
 static inline void rcu_user_exit(void) { }
-static inline void rcu_user_hooks_switch(struct task_struct *prev,
-					 struct task_struct *next) { }
 #endif /* CONFIG_NO_HZ_FULL */
 
 #ifdef CONFIG_RCU_NOCB_CPU
Signature · 1 line
2.0.2
#2 lore raw
Quoted 8 lines · Paul E. McKenney
Quoted 3 lines · Yang Shi

It is not invoked by anyone now, just remove it.

We should check with Frederic -- any plans to use this, Frederic? It was last touched by commit 4d9a5d4319e2 (rcu: Remove rcu_switch()) back in 2012.

Not at all, feel free to remove it with my ACK!

Thanks!

#3 lore raw
Quoted 11 lines · Frederic Weisbecker
Quoted 8 lines · Paul E. McKenney
Quoted 3 lines · Yang Shi

It is not invoked by anyone now, just remove it.

We should check with Frederic -- any plans to use this, Frederic? It was last touched by commit 4d9a5d4319e2 (rcu: Remove rcu_switch()) back in 2012.

Not at all, feel free to remove it with my ACK!

Very good, queued for testing and review with your ack.

Thanx, Paul