Thread (2 messages) flat view 2 messages, 2 authors, 2014-08-26

Re: [PATCH][input-led] Defer input led work to workqueue

From: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date: 2014-08-26 09:13:11
Also in: linux-leds, lkml

Johannes Berg, le Tue 26 Aug 2014 10:01:35 +0200, a écrit :
On Tue, 2014-08-26 at 03:54 +0200, Samuel Thibault wrote:
quoted
+	vt_led_wq = alloc_workqueue("input_leds", WQ_UNBOUND, 0);
+	if (!vt_led_wq)
+		return -ENOMEM;
Does this really need a separate workqueue rather than just using
schedule_work()? There doesn't seem to be much point in having its own
workqueue really, to me.
Ah, yes, probably.  I'm not up to date with this kind of thing (last
time I used those, they were called tasklets and bottom halves, you
know... ;) ), so I just followed Documentation/workqueue.txt, which does
not talk about schedule_work.

Samuel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help