initrd cleanup
Hi,
would that patch make someone really unhappy?
The point is that when you have an initrd with /linuxrc that one is executed in any case, no need to force the root=ram0.
arch/ppc/kernel/chrp_setup.c +1 -5
@@ -235,12 +235,8 @@#ifdef CONFIG_BLK_DEV_INITRD /* this is fine for chrp */ initrd_below_start_ok =1 ; - -if (initrd_start) -ROOT_DEV =MKDEV (RAMDISK_MAJOR ,0 ); - else#endif -ROOT_DEV =to_kdev_t (0x0802 );/* sda2 (sda1 is for the kernel) */ +ROOT_DEV =to_kdev_t (0x0802 );/* sda2 (sda1 is for the kernel) */ /* Lookup PCI host bridges */ chrp_find_bridges ();
arch/ppc/kernel/pmac_setup.c +2 -6
@@ -364,12 +364,8 @@#ifdef CONFIG_VT kd_mksound = pmac_mksound;#endif -#ifdef CONFIG_BLK_DEV_INITRD -if (initrd_start) -ROOT_DEV =MKDEV (RAMDISK_MAJOR ,0 ); - else -#endif -ROOT_DEV =to_kdev_t (DEFAULT_ROOT_DEVICE ); + +ROOT_DEV =to_kdev_t (DEFAULT_ROOT_DEVICE );#ifdef CONFIG_SMP /* Check for Core99 */
arch/ppc/kernel/prep_setup.c +0 -5
@@ -265,11 +265,6 @@case _PREP_Motorola:/* Enable L2. Assume we don't need to flush -- Cort*/ *(unsigned char *)(0x8000081c ) |=3 ; -#ifdef CONFIG_BLK_DEV_INITRD -if (initrd_start) -ROOT_DEV =MKDEV (RAMDISK_MAJOR ,0 );/* /dev/ram */ - else -#endif #ifdef CONFIG_ROOT_NFS ROOT_DEV =to_kdev_t (0x00ff );/* /dev/nfs */ #else
arch/ppc/kernel/setup.c +0 -1
@@ -436,7 +436,6 @@ r3 +=KERNELBASE ; initrd_start = r3; initrd_end = r3 + r4; -ROOT_DEV =MKDEV (RAMDISK_MAJOR ,0 ); initrd_below_start_ok = 1; }#endif
Gruss Olaf
--
$ man clone
BUGS
Main feature not yet implemented...
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/