From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762611AbYG3PeU (ORCPT ); Wed, 30 Jul 2008 11:34:20 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753293AbYG3PeJ (ORCPT ); Wed, 30 Jul 2008 11:34:09 -0400 Received: from rgminet01.oracle.com ([148.87.113.118]:24361 "EHLO rgminet01.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753092AbYG3PeI (ORCPT ); Wed, 30 Jul 2008 11:34:08 -0400 Date: Wed, 30 Jul 2008 08:23:35 -0700 From: Randy Dunlap To: Arjan van de Ven Cc: linux-kernel@vger.kernel.org, mingo@elte.hu, Simon Arlott , Daniel Walker , Rene Herman Subject: Re: [patch 1/4] fastboot: make fastboot a config option Message-Id: <20080730082335.4da1296f.randy.dunlap@oracle.com> In-Reply-To: <20080720151234.4535ee73@infradead.org> References: <20080720151140.4aa7c682@infradead.org> <20080720151234.4535ee73@infradead.org> Organization: Oracle Linux Eng. X-Mailer: Sylpheed 2.5.0 (GTK+ 2.12.0; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 20 Jul 2008 15:12:34 -0700 Arjan van de Ven wrote: > > From: Arjan van de Ven > Date: Sun, 20 Jul 2008 10:20:49 -0700 > Subject: [PATCH] fastboot: make fastboot a config option > > to mitigate the risks of async bootup, make fastboot a configuration > option... > > Signed-off-by: Arjan van de Ven > Signed-off-by: Ingo Molnar > --- > init/Kconfig | 11 +++++++++++ > init/main.c | 4 ++++ > 2 files changed, 15 insertions(+), 0 deletions(-) > > diff --git a/init/Kconfig b/init/Kconfig > index 6199d11..7545c8b 100644 > --- a/init/Kconfig > +++ b/init/Kconfig > @@ -524,6 +524,17 @@ config CC_OPTIMIZE_FOR_SIZE > > If unsure, say N. > > +config FASTBOOT > + bool "Fast boot support" > + help > + The fastboot option will cause the kernel to try to optimize > + for faster boot. > + > + This includes doing some of the device initialization asynchronous asynchronously > + as well as opportunistically trying to mount the root fs early. > + > + If unsure, say N. > + > config SYSCTL > bool > > diff --git a/init/main.c b/init/main.c > index 6be1756..bb97add 100644 > --- a/init/main.c > +++ b/init/main.c > @@ -776,7 +776,11 @@ static void __init do_initcalls(void) > for (call = __initcall_start; call < __initcall_end; call++) { > if (phase == 0 && call >= __async_initcall_start) { > phase = 1; > +#ifdef CONFIG_FASTBOOT > queue_work(async_init_wq, &async_work); > +#else > + do_async_initcalls(NULL); > +#endif > } > if (phase == 1 && call >= __async_initcall_end) > phase = 2; > -- --- ~Randy Linux Plumbers Conference, 17-19 September 2008, Portland, Oregon USA http://linuxplumbersconf.org/