|
@@ -317,8 +317,6 @@ static struct rcu_perf_ops sched_ops = {
|
|
|
.name = "sched"
|
|
|
};
|
|
|
|
|
|
-#ifdef CONFIG_TASKS_RCU
|
|
|
-
|
|
|
/*
|
|
|
* Definitions for RCU-tasks perf testing.
|
|
|
*/
|
|
@@ -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.
|
|
|
*/
|
|
@@ -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))
|