Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 145902
b: refs/heads/master
c: 92ac432
h: refs/heads/master
v: v3
  • Loading branch information
Joerg Roedel committed May 28, 2009
1 parent 6f3d6b4 commit e26cc30
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d91cecdd796c27df46339e80ed436a980c56fcad
refs/heads/master: 92ac4320af6ed4294c2c221dd4ccbfd9026a3aa7
13 changes: 13 additions & 0 deletions trunk/arch/x86/kernel/amd_iommu_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,11 @@ static void __init iommu_enable(struct amd_iommu *iommu)
iommu_feature_enable(iommu, CONTROL_IOMMU_EN);
}

static void iommu_disable(struct amd_iommu *iommu)
{
iommu_feature_disable(iommu, CONTROL_IOMMU_EN);
}

/*
* mapping and unmapping functions for the IOMMU MMIO space. Each AMD IOMMU in
* the system has one.
Expand Down Expand Up @@ -945,6 +950,14 @@ static void __init enable_iommus(void)
}
}

static void disable_iommus(void)
{
struct amd_iommu *iommu;

for_each_iommu(iommu)
iommu_disable(iommu);
}

/*
* Suspend/Resume support
* disable suspend until real resume implemented
Expand Down

0 comments on commit e26cc30

Please sign in to comment.