Skip to content

Commit

Permalink
rcu: Remove CONFIG_TASKS_RCU ifdef from rcuperf.c
Browse files Browse the repository at this point in the history
The synchronize_rcu_tasks() and call_rcu_tasks() APIs are now available
regardless of kernel configuration, so this commit removes the
CONFIG_TASKS_RCU ifdef from rcuperf.c.

Signed-off-by: Paul E. McKenney <[email protected]>
  • Loading branch information
paulmck committed Jul 24, 2017
1 parent ac3748c commit f1dbc54
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions kernel/rcu/rcuperf.c
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,6 @@ static struct rcu_perf_ops sched_ops = {
.name = "sched"
};

#ifdef CONFIG_TASKS_RCU

/*
* Definitions for RCU-tasks perf testing.
*/
Expand Down Expand Up @@ -346,24 +344,11 @@ static struct rcu_perf_ops tasks_ops = {
.name = "tasks"
};

#define RCUPERF_TASKS_OPS &tasks_ops,

static bool __maybe_unused torturing_tasks(void)
{
return cur_ops == &tasks_ops;
}

#else /* #ifdef CONFIG_TASKS_RCU */

#define RCUPERF_TASKS_OPS

static bool __maybe_unused torturing_tasks(void)
{
return false;
}

#endif /* #else #ifdef CONFIG_TASKS_RCU */

/*
* If performance tests complete, wait for shutdown to commence.
*/
Expand Down Expand Up @@ -658,7 +643,7 @@ rcu_perf_init(void)
int firsterr = 0;
static struct rcu_perf_ops *perf_ops[] = {
&rcu_ops, &rcu_bh_ops, &srcu_ops, &srcud_ops, &sched_ops,
RCUPERF_TASKS_OPS
&tasks_ops,
};

if (!torture_init_begin(perf_type, verbose, &perf_runnable))
Expand Down

0 comments on commit f1dbc54

Please sign in to comment.