diff options
| author | Ingo Molnar <mingo@elte.hu> | 2009-09-15 06:18:15 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2009-09-15 06:18:15 -0400 |
| commit | dca2d6ac09d9ef59ff46820d4f0c94b08a671202 (patch) | |
| tree | fdec753b842dad09e3a4151954fab3eb5c43500d /kernel/workqueue.c | |
| parent | d6a65dffb30d8636b1e5d4c201564ef401a246cf (diff) | |
| parent | 18240904960a39e582ced8ba8ececb10b8c22dd3 (diff) | |
Merge branch 'linus' into tracing/hw-breakpoints
Conflicts:
arch/x86/kernel/process_64.c
Semantic conflict fixed in:
arch/x86/kvm/x86.c
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/workqueue.c')
| -rw-r--r-- | kernel/workqueue.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/kernel/workqueue.c b/kernel/workqueue.c index 0668795d881..addfe2df93b 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c | |||
| @@ -317,8 +317,6 @@ static int worker_thread(void *__cwq) | |||
| 317 | if (cwq->wq->freezeable) | 317 | if (cwq->wq->freezeable) |
| 318 | set_freezable(); | 318 | set_freezable(); |
| 319 | 319 | ||
| 320 | set_user_nice(current, -5); | ||
| 321 | |||
| 322 | for (;;) { | 320 | for (;;) { |
| 323 | prepare_to_wait(&cwq->more_work, &wait, TASK_INTERRUPTIBLE); | 321 | prepare_to_wait(&cwq->more_work, &wait, TASK_INTERRUPTIBLE); |
| 324 | if (!freezing(current) && | 322 | if (!freezing(current) && |
| @@ -600,7 +598,12 @@ static struct workqueue_struct *keventd_wq __read_mostly; | |||
| 600 | * schedule_work - put work task in global workqueue | 598 | * schedule_work - put work task in global workqueue |
| 601 | * @work: job to be done | 599 | * @work: job to be done |
| 602 | * | 600 | * |
| 603 | * This puts a job in the kernel-global workqueue. | 601 | * Returns zero if @work was already on the kernel-global workqueue and |
| 602 | * non-zero otherwise. | ||
| 603 | * | ||
| 604 | * This puts a job in the kernel-global workqueue if it was not already | ||
| 605 | * queued and leaves it in the same position on the kernel-global | ||
| 606 | * workqueue otherwise. | ||
| 604 | */ | 607 | */ |
| 605 | int schedule_work(struct work_struct *work) | 608 | int schedule_work(struct work_struct *work) |
| 606 | { | 609 | { |
