OSDN Git Service

rcu: Eliminate RCU_BH_FLAVOR and RCU_SCHED_FLAVOR
authorPaul E. McKenney <paulmck@linux.ibm.com>
Thu, 29 Nov 2018 00:59:50 +0000 (16:59 -0800)
committerPaul E. McKenney <paulmck@linux.ibm.com>
Fri, 25 Jan 2019 23:28:25 +0000 (15:28 -0800)
Now that the RCU flavors have been consolidated, RCU_BH_FLAVOR and
RCU_SCHED_FLAVOR are no longer used.  This commit therefore saves a
few lines by removing them.

Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
kernel/rcu/rcu.h
kernel/rcu/tree.c

index a393e24..7578718 100644 (file)
@@ -462,8 +462,6 @@ void rcu_request_urgent_qs_task(struct task_struct *t);
 
 enum rcutorture_type {
        RCU_FLAVOR,
-       RCU_BH_FLAVOR,
-       RCU_SCHED_FLAVOR,
        RCU_TASKS_FLAVOR,
        SRCU_FLAVOR,
        INVALID_RCU_FLAVOR
index e56a464..fc37bec 100644 (file)
@@ -556,8 +556,6 @@ void rcutorture_get_gp_data(enum rcutorture_type test_type, int *flags,
 {
        switch (test_type) {
        case RCU_FLAVOR:
-       case RCU_BH_FLAVOR:
-       case RCU_SCHED_FLAVOR:
                *flags = READ_ONCE(rcu_state.gp_flags);
                *gp_seq = rcu_seq_current(&rcu_state.gp_seq);
                break;