diff options
author | Dan Carpenter <error27@gmail.com> | 2010-03-06 06:17:52 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-03-11 07:59:59 -0500 |
commit | ab3b3aa5dd01b3aaa6b15caee113b21b1b6520c4 (patch) | |
tree | 22801ccd492e5b6927e77aacf24aa61010b3363c /kernel | |
parent | 14be1f7454ea96ee614467a49cf018a1a383b189 (diff) |
sched: Cleanup: remove unused variable in try_to_wake_up()
We haven't used the "orig_rq" variable since
055a00865d "Fix/add missing update_rq_clock() calls"
Signed-off-by: Dan Carpenter <error27@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Andreas Herrmann <andreas.herrmann3@amd.com>
Cc: Gautham R Shenoy <ego@in.ibm.com>
Cc: efault@gmx.de
LKML-Reference: <20100306111752.GL4958@bicker>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sched.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 6a212c97f523..2c1db81f80eb 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -2359,7 +2359,7 @@ static int try_to_wake_up(struct task_struct *p, unsigned int state, | |||
2359 | { | 2359 | { |
2360 | int cpu, orig_cpu, this_cpu, success = 0; | 2360 | int cpu, orig_cpu, this_cpu, success = 0; |
2361 | unsigned long flags; | 2361 | unsigned long flags; |
2362 | struct rq *rq, *orig_rq; | 2362 | struct rq *rq; |
2363 | 2363 | ||
2364 | if (!sched_feat(SYNC_WAKEUPS)) | 2364 | if (!sched_feat(SYNC_WAKEUPS)) |
2365 | wake_flags &= ~WF_SYNC; | 2365 | wake_flags &= ~WF_SYNC; |
@@ -2367,7 +2367,7 @@ static int try_to_wake_up(struct task_struct *p, unsigned int state, | |||
2367 | this_cpu = get_cpu(); | 2367 | this_cpu = get_cpu(); |
2368 | 2368 | ||
2369 | smp_wmb(); | 2369 | smp_wmb(); |
2370 | rq = orig_rq = task_rq_lock(p, &flags); | 2370 | rq = task_rq_lock(p, &flags); |
2371 | update_rq_clock(rq); | 2371 | update_rq_clock(rq); |
2372 | if (!(p->state & state)) | 2372 | if (!(p->state & state)) |
2373 | goto out; | 2373 | goto out; |