Commit 0cabb47
committed
rcu: Refactor rcu_barrier() empty-list handling
This commit saves a few lines by checking first for an empty callback
list. If the callback list is empty, then that CPU is taken care of,
regardless of its online or nocb state. Also simplify tracing accordingly
and fold a few lines together.
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>1 parent 82980b1 commit 0cabb47
2 files changed
Lines changed: 12 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
794 | 794 | | |
795 | 795 | | |
796 | 796 | | |
| 797 | + | |
797 | 798 | | |
798 | 799 | | |
799 | | - | |
800 | | - | |
801 | | - | |
| 800 | + | |
802 | 801 | | |
803 | 802 | | |
804 | | - | |
805 | 803 | | |
806 | | - | |
| 804 | + | |
| 805 | + | |
807 | 806 | | |
808 | 807 | | |
809 | 808 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4030 | 4030 | | |
4031 | 4031 | | |
4032 | 4032 | | |
4033 | | - | |
4034 | | - | |
| 4033 | + | |
4035 | 4034 | | |
4036 | 4035 | | |
4037 | 4036 | | |
| |||
4059 | 4058 | | |
4060 | 4059 | | |
4061 | 4060 | | |
4062 | | - | |
4063 | | - | |
| 4061 | + | |
| 4062 | + | |
4064 | 4063 | | |
4065 | | - | |
4066 | | - | |
4067 | | - | |
| 4064 | + | |
| 4065 | + | |
| 4066 | + | |
4068 | 4067 | | |
4069 | | - | |
4070 | | - | |
4071 | | - | |
4072 | | - | |
| 4068 | + | |
| 4069 | + | |
4073 | 4070 | | |
4074 | 4071 | | |
4075 | 4072 | | |
4076 | | - | |
4077 | | - | |
4078 | | - | |
4079 | | - | |
4080 | | - | |
4081 | | - | |
4082 | 4073 | | |
4083 | 4074 | | |
4084 | 4075 | | |
| |||
0 commit comments