Commit 1c67318
rcutorture: Use rcu_gp_slow_register/unregister() only for rcutype test
The rcu_gp_slow_register/unregister() is only useful in tests where
torture_type=rcu, so this commit therefore generates ->gp_slow_register()
and ->gp_slow_unregister() function pointers in the rcu_torture_ops
structure, and slows grace periods only when these function pointers
exist.
Signed-off-by: Zqiang <[email protected]>
Signed-off-by: Paul E. McKenney <[email protected]>
Signed-off-by: Uladzislau Rezki (Sony) <[email protected]>1 parent 39988fd commit 1c67318
1 file changed
+10
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
382 | 382 | | |
383 | 383 | | |
384 | 384 | | |
| 385 | + | |
| 386 | + | |
385 | 387 | | |
386 | 388 | | |
387 | 389 | | |
| |||
570 | 572 | | |
571 | 573 | | |
572 | 574 | | |
| 575 | + | |
| 576 | + | |
573 | 577 | | |
574 | 578 | | |
575 | 579 | | |
| |||
3343 | 3347 | | |
3344 | 3348 | | |
3345 | 3349 | | |
3346 | | - | |
| 3350 | + | |
| 3351 | + | |
3347 | 3352 | | |
3348 | 3353 | | |
3349 | 3354 | | |
3350 | 3355 | | |
3351 | | - | |
3352 | 3356 | | |
3353 | 3357 | | |
3354 | 3358 | | |
| |||
3447 | 3451 | | |
3448 | 3452 | | |
3449 | 3453 | | |
3450 | | - | |
| 3454 | + | |
| 3455 | + | |
3451 | 3456 | | |
3452 | 3457 | | |
3453 | 3458 | | |
| |||
3929 | 3934 | | |
3930 | 3935 | | |
3931 | 3936 | | |
3932 | | - | |
| 3937 | + | |
| 3938 | + | |
3933 | 3939 | | |
3934 | 3940 | | |
3935 | 3941 | | |
| |||
0 commit comments