All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@suse.cz>
To: Thomas Tuttle <thinkinginbinary@gmail.com>
Cc: kernel list <linux-kernel@vger.kernel.org>
Subject: Re: Problems porting asus_acpi to LED subsystem
Date: Tue, 4 Jul 2006 18:37:50 +0000	[thread overview]
Message-ID: <20060704183750.GD4420@ucw.cz> (raw)
In-Reply-To: <20060704145040.GA3611@phoenix>

On Tue 04-07-06 10:50:40, Thomas Tuttle wrote:
> On July 04 at 04:50 EDT, Pavel Machek hastily scribbled:
> > I _guess_ the LED subsystem can be called from interrupt, and ACPI
> > does not like that. So you probably need to use workqueue to defer
> > setting a bit.
> 
> Ew, I would personally think that the LED subsystem should do this
> itself...

That would make LEDs factor 10000 or so slower on reasonable
platforms, sorry. But having flag 'this led needs process context'
might be god thing. Patch welcome.

> Anyway, can you give me a pointer on how to do this?  I've never used
> workqueues before.  (I've coded a grand total of about 40 lines of
> kernel code, and only about 20 work.)

grep is your friend, or some kernel programming intro.I do not have
any example near. Or maybe kernelnewbies.org.

-- 
Thanks for all the (sleeping) penguins.

  parent reply	other threads:[~2006-07-07 13:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-03 20:39 Problems porting asus_acpi to LED subsystem Thomas Tuttle
2006-07-04  8:50 ` Pavel Machek
     [not found]   ` <20060704145040.GA3611@phoenix>
2006-07-04 18:37     ` Pavel Machek [this message]
2006-07-04 22:44   ` Pavel Machek

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=20060704183750.GD4420@ucw.cz \
    --to=pavel@suse.cz \
    --cc=linux-kernel@vger.kernel.org \
    --cc=thinkinginbinary@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.