aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base/firmware_class.c
diff options
context:
space:
mode:
authorMing Lei <ming.lei@canonical.com>2012-08-04 00:01:24 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-08-16 16:28:50 -0400
commit6f21a62a58bc3c80cd8b05cacb55003cccd4863e (patch)
tree38d3311c72c7fd913fa58a91d630f02eb13972ac /drivers/base/firmware_class.c
parent0cfc1e1e7b5347b4b6df1212f365ce6620bdd98f (diff)
firmware loader: fix comments on request_firmware_nowait
request_firmware_nowait is allowed to be called in atomic context now if @gfp is GFP_ATOMIC, so fix the obsolete comments and states which situations are suitable for using it. Signed-off-by: Ming Lei <ming.lei@canonical.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base/firmware_class.c')
-rw-r--r--drivers/base/firmware_class.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/base/firmware_class.c b/drivers/base/firmware_class.c
index 7d3a83bb1318..a47266ccfc60 100644
--- a/drivers/base/firmware_class.c
+++ b/drivers/base/firmware_class.c
@@ -846,9 +846,13 @@ static void request_firmware_work_func(struct work_struct *work)
846 * 846 *
847 * Caller must hold the reference count of @device. 847 * Caller must hold the reference count of @device.
848 * 848 *
849 * Asynchronous variant of request_firmware() for user contexts where 849 * Asynchronous variant of request_firmware() for user contexts:
850 * it is not possible to sleep for long time. It can't be called 850 * - sleep for as small periods as possible since it may
851 * in atomic contexts. 851 * increase kernel boot time of built-in device drivers
852 * requesting firmware in their ->probe() methods, if
853 * @gfp is GFP_KERNEL.
854 *
855 * - can't sleep at all if @gfp is GFP_ATOMIC.
852 **/ 856 **/
853int 857int
854request_firmware_nowait( 858request_firmware_nowait(