aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/x86_init.c
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2009-11-10 05:46:12 -0500
committerIngo Molnar <mingo@elte.hu>2009-11-10 06:31:07 -0500
commitd07c1be0693e0902d743160b8b638585b808f8ac (patch)
treef7fdf807528bf9938fc1710bcd7ad9e15c9d7f75 /arch/x86/kernel/x86_init.c
parent41855b77547fa18d90ed6a5d322983d3fdab1959 (diff)
x86: Add iommu_init to x86_init_ops
We call the detections functions of all the IOMMUs then all their initialization functions. The latter is pointless since we don't detect multiple different IOMMUs. What we need to do is calling the initialization function of the detected IOMMU. This adds iommu_init hook to x86_init_ops so if an IOMMU detection function can set its initialization function to the hook. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Cc: chrisw@sous-sol.org Cc: dwmw2@infradead.org Cc: joerg.roedel@amd.com Cc: muli@il.ibm.com LKML-Reference: <1257849980-22640-2-git-send-email-fujita.tomonori@lab.ntt.co.jp> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/x86_init.c')
-rw-r--r--arch/x86/kernel/x86_init.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86/kernel/x86_init.c b/arch/x86/kernel/x86_init.c
index bc9b230ef402..c46984d122dc 100644
--- a/arch/x86/kernel/x86_init.c
+++ b/arch/x86/kernel/x86_init.c
@@ -19,6 +19,7 @@
19void __cpuinit x86_init_noop(void) { } 19void __cpuinit x86_init_noop(void) { }
20void __init x86_init_uint_noop(unsigned int unused) { } 20void __init x86_init_uint_noop(unsigned int unused) { }
21void __init x86_init_pgd_noop(pgd_t *unused) { } 21void __init x86_init_pgd_noop(pgd_t *unused) { }
22int __init iommu_init_noop(void) { return 0; }
22 23
23/* 24/*
24 * The platform setup functions are preset with the default functions 25 * The platform setup functions are preset with the default functions
@@ -63,6 +64,10 @@ struct x86_init_ops x86_init __initdata = {
63 .tsc_pre_init = x86_init_noop, 64 .tsc_pre_init = x86_init_noop,
64 .timer_init = hpet_time_init, 65 .timer_init = hpet_time_init,
65 }, 66 },
67
68 .iommu = {
69 .iommu_init = iommu_init_noop,
70 },
66}; 71};
67 72
68struct x86_cpuinit_ops x86_cpuinit __cpuinitdata = { 73struct x86_cpuinit_ops x86_cpuinit __cpuinitdata = {