mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
amd-iommu: drop pointless iommu-loop in msi setup code
It is not necessary to loop again over all IOMMUs in this code. So drop the loop. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
This commit is contained in:
parent
58492e1288
commit
fab6afa309
1 changed files with 1 additions and 7 deletions
|
@ -826,13 +826,6 @@ out_free:
|
||||||
static int __init iommu_setup_msi(struct amd_iommu *iommu)
|
static int __init iommu_setup_msi(struct amd_iommu *iommu)
|
||||||
{
|
{
|
||||||
int r;
|
int r;
|
||||||
struct amd_iommu *curr;
|
|
||||||
|
|
||||||
for_each_iommu(curr) {
|
|
||||||
if (curr->dev == iommu->dev)
|
|
||||||
curr->int_enabled = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
if (pci_enable_msi(iommu->dev))
|
if (pci_enable_msi(iommu->dev))
|
||||||
return 1;
|
return 1;
|
||||||
|
@ -847,6 +840,7 @@ static int __init iommu_setup_msi(struct amd_iommu *iommu)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
iommu->int_enabled = true;
|
||||||
iommu_feature_enable(iommu, CONTROL_EVT_INT_EN);
|
iommu_feature_enable(iommu, CONTROL_EVT_INT_EN);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue