]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - init/do_mounts_initrd.c
r8169: avoid needless NAPI poll scheduling
[linux-2.6-omap-h63xx.git] / init / do_mounts_initrd.c
index 919a80cb322e6f57dfa2be0a3bb727251bcd7e0e..a6b4c0c08e13ea4bc1db5ade1cf8eb73d18c7d72 100644 (file)
@@ -6,6 +6,7 @@
 #include <linux/romfs_fs.h>
 #include <linux/initrd.h>
 #include <linux/sched.h>
+#include <linux/freezer.h>
 
 #include "do_mounts.h"
 
@@ -54,12 +55,10 @@ static void __init handle_initrd(void)
        sys_mount(".", "/", NULL, MS_MOVE, NULL);
        sys_chroot(".");
 
-       current->flags |= PF_NOFREEZE;
        pid = kernel_thread(do_linuxrc, "/linuxrc", SIGCHLD);
-       if (pid > 0) {
+       if (pid > 0)
                while (pid != sys_wait4(-1, NULL, 0, NULL))
                        yield();
-       }
 
        /* move initrd to rootfs' /old */
        sys_fchdir(old_fd);