mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alexander Stein <alexander.stein@systec-electronic.com>
To: linux-kernel@vger.kernel.org
Subject: detached sleepable task during initcall
Date: Wed, 8 Dec 2010 08:55:41 +0100	[thread overview]
Message-ID: <201012080856.06972.alexander.stein@systec-electronic.com> (raw)

Hello,

we need to run a platform dependant function changing GPIOs which need a 
specific time between those changes. Actually it is the platform set_power 
function used by platform_lcd_probe. This itself is no problem. But the 
currently used msleeps on about 250ms summarized is really much while the 
system idles.
We'd like to avoid idle during that msleeps. So, we used a work_queue in that 
set_power function. But unforturnatly do_initcalls calls flush_scheduled_work 
at the end. So the system will still idle until this work_queue has finished.
What can we use to call the set_power function asynchronously and sleepable 
while not waiting during system startup on this function to be finished? The 
set_power just enabled the lcd power and nothing need to wait on that.

Regards,
Alexander

                 reply	other threads:[~2010-12-08  7:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=201012080856.06972.alexander.stein@systec-electronic.com \
    --to=alexander.stein@systec-electronic.com \
    --cc=linux-kernel@vger.kernel.org \
    /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®