]> git.hungrycats.org Git - linux/commit
[PATCH] ppc boot device selection cleanup
authorAlexander Viro <viro@parcelfarce.linux.theplanet.co.uk>
Thu, 24 Apr 2003 15:39:15 +0000 (08:39 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Thu, 24 Apr 2003 15:39:15 +0000 (08:39 -0700)
commite86180325cff63fa6c00fff16c3764f5977f658f
tree33e58180b30a838b710037b39a39c50d14d4f305
parent91b58109a339748d992cb767e145c19722756653
[PATCH] ppc boot device selection cleanup

PPC logics for choice of default boot device number switched to
dev_t.  Rationale: it belongs to userland; we notice partitions with
certain properties and choose one of them as the best candidate for
being a root fs; then we put the resulting device number into ROOT_DEV,
which has only one use - it's passed to mknod(2) to create a device node
on rootfs and allow mount(2) get us the final root.

IOW, all that code has nothing whatsoever with kernel internals
of any description - the value we are generating will be passed to
mknod(2) anyway.  Switched to dev_t.

Note: that code should eventually be moved to early userland.
arch/ppc/platforms/chrp_setup.c
arch/ppc/platforms/pmac_setup.c
arch/ppc/platforms/prep_setup.c
arch/ppc64/kernel/chrp_setup.c
drivers/ide/ppc/pmac.c
fs/partitions/mac.c