Commit db75c95
iommu/vt-d: Fold __dmar_remove_one_dev_info() into its caller
Fold __dmar_remove_one_dev_info() into dmar_remove_one_dev_info() which
is its only caller. Make the spin lock critical range only cover the
device list change code and remove some unnecessary checks.
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Link: https://lore.kernel.org/r/20220706025524.2904370-10-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>1 parent 79d82ce commit db75c95
1 file changed
Lines changed: 8 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
298 | | - | |
299 | 298 | | |
300 | 299 | | |
301 | 300 | | |
| |||
4137 | 4136 | | |
4138 | 4137 | | |
4139 | 4138 | | |
4140 | | - | |
| 4139 | + | |
4141 | 4140 | | |
4142 | | - | |
4143 | | - | |
4144 | | - | |
4145 | | - | |
4146 | | - | |
4147 | | - | |
4148 | | - | |
4149 | | - | |
4150 | | - | |
4151 | | - | |
| 4141 | + | |
| 4142 | + | |
4152 | 4143 | | |
4153 | | - | |
| 4144 | + | |
4154 | 4145 | | |
4155 | 4146 | | |
4156 | 4147 | | |
| |||
4160 | 4151 | | |
4161 | 4152 | | |
4162 | 4153 | | |
4163 | | - | |
4164 | | - | |
4165 | | - | |
4166 | | - | |
4167 | | - | |
4168 | | - | |
4169 | | - | |
4170 | | - | |
4171 | 4154 | | |
4172 | | - | |
4173 | | - | |
4174 | | - | |
| 4155 | + | |
4175 | 4156 | | |
| 4157 | + | |
| 4158 | + | |
| 4159 | + | |
4176 | 4160 | | |
4177 | 4161 | | |
4178 | 4162 | | |
| |||
0 commit comments