aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base/dmapool.c
diff options
context:
space:
mode:
authorArjan van de Ven <arjan@infradead.org>2007-10-17 02:29:32 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-17 11:42:56 -0400
commitd9aacccf457d07d729cfc7bf20ff0c7428357a9f (patch)
tree59c1cfe32636d3ed6de22211210357a6b1e83ab2 /drivers/base/dmapool.c
parent8e8934695dfd1d5013555a74a9da706a2e301cb0 (diff)
make dmapool code use __set_current_state()
Signed-off-by: Arjan van de Ven <arjan@Linux.intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/base/dmapool.c')
-rw-r--r--drivers/base/dmapool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/dmapool.c b/drivers/base/dmapool.c
index 7647abfe1890..fbae8674e491 100644
--- a/drivers/base/dmapool.c
+++ b/drivers/base/dmapool.c
@@ -302,7 +302,7 @@ restart:
302 if (mem_flags & __GFP_WAIT) { 302 if (mem_flags & __GFP_WAIT) {
303 DECLARE_WAITQUEUE (wait, current); 303 DECLARE_WAITQUEUE (wait, current);
304 304
305 current->state = TASK_INTERRUPTIBLE; 305 __set_current_state(TASK_INTERRUPTIBLE);
306 add_wait_queue (&pool->waitq, &wait); 306 add_wait_queue (&pool->waitq, &wait);
307 spin_unlock_irqrestore (&pool->lock, flags); 307 spin_unlock_irqrestore (&pool->lock, flags);
308 308