]> git.karo-electronics.de Git - linux-beck.git/commitdiff
init: reduce rootwait polling interval time to 5ms
authorJungseung Lee <js07.lee@samsung.com>
Tue, 13 Dec 2016 00:46:43 +0000 (16:46 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 13 Dec 2016 02:55:10 +0000 (18:55 -0800)
For several devices, the rootwait time is sensitive because it directly
affects booting time.  The polling interval of rootwait is currently
100ms.  To save unnessesary waiting time, reduce the polling interval to
5 ms.

[akpm@linux-foundation.org: remove used-once #define]
Link: http://lkml.kernel.org/r/20161207060743.1728-1-js07.lee@samsung.com
Signed-off-by: Jungseung Lee <js07.lee@samsung.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
init/do_mounts.c

index dea5de95c2dd23771f44e58ada2d9b1dbfa1c5df..c2de5104aad2d64c51dfc480c7f5fa3e84daa1b4 100644 (file)
@@ -588,7 +588,7 @@ void __init prepare_namespace(void)
                        saved_root_name);
                while (driver_probe_done() != 0 ||
                        (ROOT_DEV = name_to_dev_t(saved_root_name)) == 0)
-                       msleep(100);
+                       msleep(5);
                async_synchronize_full();
        }