diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2013-03-12 19:54:14 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2013-06-10 16:45:25 -0400 |
commit | 99f88919f8fa8a8b01b5306c59c9977b94604df8 (patch) | |
tree | 8e92937651258199944fed1ae2b612f0f693be00 /kernel/rcutorture.c | |
parent | efc151c33b971148894789dc7c5589dec46d4348 (diff) |
rcu: Remove srcu_read_lock_raw() and srcu_read_unlock_raw().
These interfaces never did get used, so this commit removes them,
their rcutorture tests, and documentation referencing them.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Diffstat (limited to 'kernel/rcutorture.c')
-rw-r--r-- | kernel/rcutorture.c | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/kernel/rcutorture.c b/kernel/rcutorture.c index e1f3a8c96724..b1fa5510388d 100644 --- a/kernel/rcutorture.c +++ b/kernel/rcutorture.c | |||
@@ -695,44 +695,6 @@ static struct rcu_torture_ops srcu_sync_ops = { | |||
695 | .name = "srcu_sync" | 695 | .name = "srcu_sync" |
696 | }; | 696 | }; |
697 | 697 | ||
698 | static int srcu_torture_read_lock_raw(void) __acquires(&srcu_ctl) | ||
699 | { | ||
700 | return srcu_read_lock_raw(&srcu_ctl); | ||
701 | } | ||
702 | |||
703 | static void srcu_torture_read_unlock_raw(int idx) __releases(&srcu_ctl) | ||
704 | { | ||
705 | srcu_read_unlock_raw(&srcu_ctl, idx); | ||
706 | } | ||
707 | |||
708 | static struct rcu_torture_ops srcu_raw_ops = { | ||
709 | .init = rcu_sync_torture_init, | ||
710 | .readlock = srcu_torture_read_lock_raw, | ||
711 | .read_delay = srcu_read_delay, | ||
712 | .readunlock = srcu_torture_read_unlock_raw, | ||
713 | .completed = srcu_torture_completed, | ||
714 | .deferred_free = srcu_torture_deferred_free, | ||
715 | .sync = srcu_torture_synchronize, | ||
716 | .call = NULL, | ||
717 | .cb_barrier = NULL, | ||
718 | .stats = srcu_torture_stats, | ||
719 | .name = "srcu_raw" | ||
720 | }; | ||
721 | |||
722 | static struct rcu_torture_ops srcu_raw_sync_ops = { | ||
723 | .init = rcu_sync_torture_init, | ||
724 | .readlock = srcu_torture_read_lock_raw, | ||
725 | .read_delay = srcu_read_delay, | ||
726 | .readunlock = srcu_torture_read_unlock_raw, | ||
727 | .completed = srcu_torture_completed, | ||
728 | .deferred_free = rcu_sync_torture_deferred_free, | ||
729 | .sync = srcu_torture_synchronize, | ||
730 | .call = NULL, | ||
731 | .cb_barrier = NULL, | ||
732 | .stats = srcu_torture_stats, | ||
733 | .name = "srcu_raw_sync" | ||
734 | }; | ||
735 | |||
736 | static void srcu_torture_synchronize_expedited(void) | 698 | static void srcu_torture_synchronize_expedited(void) |
737 | { | 699 | { |
738 | synchronize_srcu_expedited(&srcu_ctl); | 700 | synchronize_srcu_expedited(&srcu_ctl); |
@@ -1983,7 +1945,6 @@ rcu_torture_init(void) | |||
1983 | { &rcu_ops, &rcu_sync_ops, &rcu_expedited_ops, | 1945 | { &rcu_ops, &rcu_sync_ops, &rcu_expedited_ops, |
1984 | &rcu_bh_ops, &rcu_bh_sync_ops, &rcu_bh_expedited_ops, | 1946 | &rcu_bh_ops, &rcu_bh_sync_ops, &rcu_bh_expedited_ops, |
1985 | &srcu_ops, &srcu_sync_ops, &srcu_expedited_ops, | 1947 | &srcu_ops, &srcu_sync_ops, &srcu_expedited_ops, |
1986 | &srcu_raw_ops, &srcu_raw_sync_ops, | ||
1987 | &sched_ops, &sched_sync_ops, &sched_expedited_ops, }; | 1948 | &sched_ops, &sched_sync_ops, &sched_expedited_ops, }; |
1988 | 1949 | ||
1989 | mutex_lock(&fullstop_mutex); | 1950 | mutex_lock(&fullstop_mutex); |