x86: Use x86_platform for iommu_shutdown
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Tue, 27 Oct 2009 07:34:44 +0000 (16:34 +0900)
committerIngo Molnar <mingo@elte.hu>
Sun, 8 Nov 2009 12:12:26 +0000 (13:12 +0100)
commit338bac527ed0e35b4cb50390972f15d3cbce92ca
treec959878378523ba7f3bb0e30e98336549cadbdc0
parent7c9abfb884b8737f0afdc8a88bcea77526f0da87
x86: Use x86_platform for iommu_shutdown

This patch cleans up pci_iommu_shutdown() a bit to use
x86_platform (similar to how IA64 initializes an IOMMU driver).

This adds iommu_shutdown() to x86_platform to avoid calling
every IOMMUs' shutdown functions in pci_iommu_shutdown() in
order. The IOMMU shutdown functions are platform specific (we
don't have multiple different IOMMU hardware) so the current way
is pointless.

An IOMMU driver sets x86_platform.iommu_shutdown to the shutdown
function if necessary.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Cc: joerg.roedel@amd.com
LKML-Reference: <20091027163358F.fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/amd_iommu.h
arch/x86/include/asm/gart.h
arch/x86/include/asm/iommu.h
arch/x86/include/asm/x86_init.h
arch/x86/kernel/amd_iommu_init.c
arch/x86/kernel/crash.c
arch/x86/kernel/pci-dma.c
arch/x86/kernel/pci-gart_64.c
arch/x86/kernel/reboot.c
arch/x86/kernel/x86_init.c