public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: "Woodruff, Richard" <r-woodruff2@ti.com>
Cc: "Reddy, Teerth" <teerth@ti.com>, pm list <linux-pm@lists.osdl.org>
Subject: Re: Use of parallel init threads for slow devices start ups?
Date: Mon, 19 Feb 2007 16:48:57 -0800	[thread overview]
Message-ID: <20070220004857.GB9922@kroah.com> (raw)
In-Reply-To: <3B6D69C3A9EBCA4BA5DA60D9130274295B9D66@dlee13.ent.ti.com>

On Mon, Feb 19, 2007 at 11:50:38AM -0600, Woodruff, Richard wrote:
> Hi,
> 
> While doing some startup time profiling it is noticed we spend a lot of
> time in the idle loop.  As there is only one thread initializing devices
> there is no one to schedule during device start ups.  So for example an
> external sensor might need a couple seconds to power up.
> 
> Does anyone want to give an opinion on forking off a parallel thread to
> handle slower devices which are not dependent?

I've added options to the kernel to do just this, and in the end, it
wasn't really worth it.  Yes, it does save some time for some machines,
but the number of errors it added was quite large as most drivers and
bus subsystems are not ready to handle such multi-threaded probing.

But you can try it out yourself if you want, look at the patches in the
previous few kernel releases that enable this functionality.

thanks,

greg k-h

      parent reply	other threads:[~2007-02-20  0:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-19 17:50 Use of parallel init threads for slow devices start ups? Woodruff, Richard
2007-02-19 22:26 ` Pavel Machek
2007-02-19 23:52 ` Andi Kleen
2007-02-20  0:48 ` Greg KH [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=20070220004857.GB9922@kroah.com \
    --to=greg@kroah.com \
    --cc=linux-pm@lists.osdl.org \
    --cc=r-woodruff2@ti.com \
    --cc=teerth@ti.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