Skip to contentSkip to conversation

linux/x86-64: Reduce delta to native setup code

PATCH New Jan Beulich 1 participant 1 message Dec 6, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux/x86-64: Reduce delta to native setup code

.. once more making applying other patches easier.

As usual, written and tested against 2.6.24-rc3 and made apply against 2.6.18 without further testing.

arch/x86_64/kernel/setup-xen.c +1 -11
Index: head-2007-11-30/arch/x86_64/kernel/setup-xen.c
===================================================================
@@ -301,16 +338,6 @@ void __init setup_arch(char **cmdline_p)
 		screen_info.orig_video_isVGA = 0;
 
 	copy_edid();
-	saved_video_mode = SAVED_VIDEO_MODE;
-	bootloader_type = LOADER_TYPE;
-
-#ifdef CONFIG_BLK_DEV_RAM
-	rd_image_start = RAMDISK_FLAGS & RAMDISK_IMAGE_START_MASK;
-	rd_prompt = ((RAMDISK_FLAGS & RAMDISK_PROMPT_FLAG) != 0);
-	rd_doload = ((RAMDISK_FLAGS & RAMDISK_LOAD_FLAG) != 0);
-
-
-#endif
 
 	HYPERVISOR_vm_assist(VMASST_CMD_enable,
 			     VMASST_TYPE_writable_pagetables);
@@ -322,6 +312,7 @@ void __init setup_arch(char **cmdline_p)
  	ROOT_DEV = old_decode_dev(ORIG_ROOT_DEV);
  	screen_info = SCREEN_INFO;
 	edid_info = EDID_INFO;
+#endif	/* !CONFIG_XEN */
 	saved_video_mode = SAVED_VIDEO_MODE;
 	bootloader_type = LOADER_TYPE;
 
@@ -330,7 +331,6 @@ void __init setup_arch(char **cmdline_p)
 	rd_prompt = ((RAMDISK_FLAGS & RAMDISK_PROMPT_FLAG) != 0);
 	rd_doload = ((RAMDISK_FLAGS & RAMDISK_LOAD_FLAG) != 0);
 #endif
-#endif	/* !CONFIG_XEN */
 	setup_memory_region();
 	copy_edd();