firmware_class: Move request_firmware_nowait() to workqueues
authorStephen Boyd <sboyd@codeaurora.org>
Wed, 28 Mar 2012 21:31:00 +0000 (23:31 +0200)
committerVarun Wadekar <vwadekar@nvidia.com>
Wed, 18 Apr 2012 13:07:42 +0000 (18:07 +0530)
commit820b9377a1d621b4b67ac0337923850c039360d1
treea1a3d742c879e12d073ec5d6b6768d60a65f3a91
parent7ae912936379a40216ddbe166d82a7b13c246af8
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 <sboyd@codeaurora.org>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
drivers/base/firmware_class.c