25 lines
662 B
Diff
25 lines
662 B
Diff
Subject: workqueue-use-get-cpu-light.patch
|
|
From: Thomas Gleixner <tglx@linutronix.de>
|
|
Date: Sun, 17 Jul 2011 21:42:26 +0200
|
|
|
|
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
|
|
---
|
|
kernel/workqueue.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
Index: linux-3.2/kernel/workqueue.c
|
|
===================================================================
|
|
--- linux-3.2.orig/kernel/workqueue.c
|
|
+++ linux-3.2/kernel/workqueue.c
|
|
@@ -1061,8 +1061,8 @@ int queue_work(struct workqueue_struct *
|
|
{
|
|
int ret;
|
|
|
|
- ret = queue_work_on(get_cpu(), wq, work);
|
|
- put_cpu();
|
|
+ ret = queue_work_on(get_cpu_light(), wq, work);
|
|
+ put_cpu_light();
|
|
|
|
return ret;
|
|
}
|