diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2008-07-11 11:14:31 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-11 12:01:15 -0400 |
commit | 2e22847fbe05f2543ccebd0c2df94d9cf3c52aa5 (patch) | |
tree | 3b86f924a779377e535c7658be7be87bd94a804f /arch/x86/kernel/amd_iommu_init.c | |
parent | 58a3bee567b588a84cdde05fecc45439b396362c (diff) |
x86, AMD IOMMU: do runtime list initialization at compile time
This patch changes the list initialization for the iommu list and the unity map
list from runtime to compile time.
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Cc: iommu@lists.linux-foundation.org
Cc: bhavna.sarathy@amd.com
Cc: robert.richter@amd.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/amd_iommu_init.c')
-rw-r--r-- | arch/x86/kernel/amd_iommu_init.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/x86/kernel/amd_iommu_init.c b/arch/x86/kernel/amd_iommu_init.c index 316fe2eaeefe..0c247032308e 100644 --- a/arch/x86/kernel/amd_iommu_init.c +++ b/arch/x86/kernel/amd_iommu_init.c | |||
@@ -118,12 +118,12 @@ static int __initdata amd_iommu_detected; | |||
118 | 118 | ||
119 | u16 amd_iommu_last_bdf; /* largest PCI device id we have | 119 | u16 amd_iommu_last_bdf; /* largest PCI device id we have |
120 | to handle */ | 120 | to handle */ |
121 | struct list_head amd_iommu_unity_map; /* a list of required unity mappings | 121 | LIST_HEAD(amd_iommu_unity_map); /* a list of required unity mappings |
122 | we find in ACPI */ | 122 | we find in ACPI */ |
123 | unsigned amd_iommu_aperture_order = 26; /* size of aperture in power of 2 */ | 123 | unsigned amd_iommu_aperture_order = 26; /* size of aperture in power of 2 */ |
124 | int amd_iommu_isolate; /* if 1, device isolation is enabled */ | 124 | int amd_iommu_isolate; /* if 1, device isolation is enabled */ |
125 | 125 | ||
126 | struct list_head amd_iommu_list; /* list of all AMD IOMMUs in the | 126 | LIST_HEAD(amd_iommu_list); /* list of all AMD IOMMUs in the |
127 | system */ | 127 | system */ |
128 | 128 | ||
129 | /* | 129 | /* |
@@ -673,8 +673,6 @@ static int __init init_iommu_all(struct acpi_table_header *table) | |||
673 | struct amd_iommu *iommu; | 673 | struct amd_iommu *iommu; |
674 | int ret; | 674 | int ret; |
675 | 675 | ||
676 | INIT_LIST_HEAD(&amd_iommu_list); | ||
677 | |||
678 | end += table->length; | 676 | end += table->length; |
679 | p += IVRS_HEADER_LENGTH; | 677 | p += IVRS_HEADER_LENGTH; |
680 | 678 | ||
@@ -780,8 +778,6 @@ static int __init init_memory_definitions(struct acpi_table_header *table) | |||
780 | u8 *p = (u8 *)table, *end = (u8 *)table; | 778 | u8 *p = (u8 *)table, *end = (u8 *)table; |
781 | struct ivmd_header *m; | 779 | struct ivmd_header *m; |
782 | 780 | ||
783 | INIT_LIST_HEAD(&amd_iommu_unity_map); | ||
784 | |||
785 | end += table->length; | 781 | end += table->length; |
786 | p += IVRS_HEADER_LENGTH; | 782 | p += IVRS_HEADER_LENGTH; |
787 | 783 | ||