From: Pavel Machek <pavel@suse.cz>
To: Tim Bird <tim.bird@am.sony.com>
Cc: linux kernel <linux-kernel@vger.kernel.org>
Subject: Re: [Fwd: Recommendation for activating a deferred module init in the kernel]
Date: Mon, 23 Jun 2008 16:19:55 +0200 [thread overview]
Message-ID: <20080623141955.GA5006@ucw.cz> (raw)
In-Reply-To: <4858024D.6010601@am.sony.com>
Hi!
> In our modification, we:
> 1) add another phase for deferred initcalls
> 2) modify the module_init macro definition to use that phase, for the
> modules we wish to defer initialization of
> 3) modify the free code to not free the memory until later
> 4) add an ioctl to trigger the deferred initialization (and memory free)
>
> One of the main sub-systems that we defer initialization of this
> way is USB, and this saves quite a bit of time. (Of course the
> same, or slightly more CPU cycles are eventually used during
> bootup time. But this lets us get to user space quicker so we
> can start user-visible applications faster.)
Could the usb be modified to do background init by default, instead?
> I'm not that happy using an ioctl for this trigger. What is
> the preferred method of activating a kernel feature like this?
> I presume something in /proc or /sys, but I'm not sure.
Definitely not /proc.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
prev parent reply other threads:[~2008-06-23 14:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-17 18:28 Tim Bird
2008-06-23 14:19 ` Pavel Machek [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080623141955.GA5006@ucw.cz \
--to=pavel@suse.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=tim.bird@am.sony.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®