Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 104325
b: refs/heads/master
c: 0906372
h: refs/heads/master
i:
  104323: d11ac51
v: v3
  • Loading branch information
Joerg Roedel authored and Ingo Molnar committed Jul 11, 2008
1 parent 42fab88 commit b3d6744
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5dc8bff0f6d0dfeb1f1c6e694294ba7c33d099f1
refs/heads/master: 0906372e6cf372f3162481f24a0b8ccae0eff4d7
18 changes: 4 additions & 14 deletions trunk/arch/x86/kernel/amd_iommu_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -1042,20 +1042,10 @@ static int __init parse_amd_iommu_options(char *str)

static int __init parse_amd_iommu_size_options(char *str)
{
for (; *str; ++str) {
if (strcmp(str, "32M") == 0)
amd_iommu_aperture_order = 25;
if (strcmp(str, "64M") == 0)
amd_iommu_aperture_order = 26;
if (strcmp(str, "128M") == 0)
amd_iommu_aperture_order = 27;
if (strcmp(str, "256M") == 0)
amd_iommu_aperture_order = 28;
if (strcmp(str, "512M") == 0)
amd_iommu_aperture_order = 29;
if (strcmp(str, "1G") == 0)
amd_iommu_aperture_order = 30;
}
unsigned order = PAGE_SHIFT + get_order(memparse(str, &str));

if ((order > 24) && (order < 31))
amd_iommu_aperture_order = order;

return 1;
}
Expand Down

0 comments on commit b3d6744

Please sign in to comment.