Skip to content

Commit

Permalink
sched: Cleanup: remove unused variable in try_to_wake_up()
Browse files Browse the repository at this point in the history
We haven't used the "orig_rq" variable since
055a008 "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>
  • Loading branch information
Dan Carpenter authored and Ingo Molnar committed Mar 11, 2010
1 parent 14be1f7 commit ab3b3aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -2359,15 +2359,15 @@ static int try_to_wake_up(struct task_struct *p, unsigned int state,
{
int cpu, orig_cpu, this_cpu, success = 0;
unsigned long flags;
struct rq *rq, *orig_rq;
struct rq *rq;

if (!sched_feat(SYNC_WAKEUPS))
wake_flags &= ~WF_SYNC;

this_cpu = get_cpu();

smp_wmb();
rq = orig_rq = task_rq_lock(p, &flags);
rq = task_rq_lock(p, &flags);
update_rq_clock(rq);
if (!(p->state & state))
goto out;
Expand Down

0 comments on commit ab3b3aa

Please sign in to comment.