From: Stephen Boyd Date: Wed, 28 Mar 2012 21:31:00 +0000 (+0200) Subject: firmware_class: Move request_firmware_nowait() to workqueues X-Git-Tag: v3.4-rc2~19^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a36cf844c543c6193445a7b1492d16e5a8cf376e;p=pandora-kernel.git firmware_class: Move request_firmware_nowait() to workqueues Oddly enough a work_struct was already part of the firmware_work structure but nobody was using it. Instead of creating a new kthread for each request_firmware_nowait() call just schedule the work on the system workqueue. This should avoid some overhead in forking new threads when they're not strictly necessary. Signed-off-by: Stephen Boyd Acked-by: Greg Kroah-Hartman Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed