Skip to content

Commit

Permalink
sched: Remove unused update_shares_locked()
Browse files Browse the repository at this point in the history
Commit f492e12 ("sched: Remove
load_balance_newidle()") removed the only user of this function,
so remove it too.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <1265019219.24455.128.camel@laptop>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Feb 2, 2010
1 parent 90fdbdb commit 4a461c8
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -1633,16 +1633,6 @@ static void update_shares(struct sched_domain *sd)
}
}

static void update_shares_locked(struct rq *rq, struct sched_domain *sd)
{
if (root_task_group_empty())
return;

raw_spin_unlock(&rq->lock);
update_shares(sd);
raw_spin_lock(&rq->lock);
}

static void update_h_load(long cpu)
{
if (root_task_group_empty())
Expand All @@ -1657,10 +1647,6 @@ static inline void update_shares(struct sched_domain *sd)
{
}

static inline void update_shares_locked(struct rq *rq, struct sched_domain *sd)
{
}

#endif

#ifdef CONFIG_PREEMPT
Expand Down

0 comments on commit 4a461c8

Please sign in to comment.