Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 179385
b: refs/heads/master
c: 42590a7
h: refs/heads/master
i:
  179383: 790aa86
v: v3
  • Loading branch information
FUJITA Tomonori authored and Ingo Molnar committed Jan 13, 2010
1 parent ce45006 commit 47165f2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 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: fcfbb2b5facd65efa7284cc315225bfe3d1856c2
refs/heads/master: 42590a75019a50012f25a962246498dead428433
1 change: 1 addition & 0 deletions trunk/arch/x86/kernel/aperture_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include <asm/x86_init.h>

int gart_iommu_aperture;
EXPORT_SYMBOL_GPL(gart_iommu_aperture);
int gart_iommu_aperture_disabled __initdata;
int gart_iommu_aperture_allowed __initdata;

Expand Down
5 changes: 3 additions & 2 deletions trunk/drivers/char/agp/amd64-agp.c
Original file line number Diff line number Diff line change
Expand Up @@ -725,12 +725,11 @@ static struct pci_driver agp_amd64_pci_driver = {
int __init agp_amd64_init(void)
{
int err = 0;
static int done = 0;

if (agp_off)
return -EINVAL;

if (done++)
if (gart_iommu_aperture)
return agp_bridges_found ? 0 : -ENODEV;

err = pci_register_driver(&agp_amd64_pci_driver);
Expand Down Expand Up @@ -771,6 +770,8 @@ int __init agp_amd64_init(void)

static void __exit agp_amd64_cleanup(void)
{
if (gart_iommu_aperture)
return;
if (aperture_resource)
release_resource(aperture_resource);
pci_unregister_driver(&agp_amd64_pci_driver);
Expand Down

0 comments on commit 47165f2

Please sign in to comment.