Merge branch 'for-linus' of git://git.linaro.org/people/mszyprowski/linux-dma-mapping
[profile/ivi/kernel-adaptation-intel-automotive.git] / arch / x86 / kernel / setup.c
index d6c956e..f2afee6 100644 (file)
@@ -34,7 +34,6 @@
 #include <linux/memblock.h>
 #include <linux/seq_file.h>
 #include <linux/console.h>
-#include <linux/mca.h>
 #include <linux/root_dev.h>
 #include <linux/highmem.h>
 #include <linux/module.h>
@@ -180,12 +179,6 @@ struct cpuinfo_x86 new_cpu_data __cpuinitdata = {0, 0, 0, 0, -1, 1, 0, 0, -1};
 /* common cpu data for all cpus */
 struct cpuinfo_x86 boot_cpu_data __read_mostly = {0, 0, 0, 0, -1, 1, 0, 0, -1};
 EXPORT_SYMBOL(boot_cpu_data);
-static void set_mca_bus(int x)
-{
-#ifdef CONFIG_MCA
-       MCA_bus = x;
-#endif
-}
 
 unsigned int def_to_bigsmp;
 
@@ -394,10 +387,9 @@ static void __init reserve_initrd(void)
        initrd_start = 0;
 
        if (ramdisk_size >= (end_of_lowmem>>1)) {
-               memblock_free(ramdisk_image, ramdisk_end - ramdisk_image);
-               printk(KERN_ERR "initrd too large to handle, "
-                      "disabling initrd\n");
-               return;
+               panic("initrd too large to handle, "
+                      "disabling initrd (%lld needed, %lld available)\n",
+                      ramdisk_size, end_of_lowmem>>1);
        }
 
        printk(KERN_INFO "RAMDISK: %08llx - %08llx\n", ramdisk_image,
@@ -718,7 +710,6 @@ void __init setup_arch(char **cmdline_p)
        apm_info.bios = boot_params.apm_bios_info;
        ist_info = boot_params.ist_info;
        if (boot_params.sys_desc_table.length != 0) {
-               set_mca_bus(boot_params.sys_desc_table.table[3] & 0x2);
                machine_id = boot_params.sys_desc_table.table[0];
                machine_submodel_id = boot_params.sys_desc_table.table[1];
                BIOS_revision = boot_params.sys_desc_table.table[2];
@@ -1014,7 +1005,8 @@ void __init setup_arch(char **cmdline_p)
        init_cpu_to_node();
 
        init_apic_mappings();
-       ioapic_and_gsi_init();
+       if (x86_io_apic_ops.init)
+               x86_io_apic_ops.init();
 
        kvm_guest_init();