From: Peter Zijlstra Date: Tue, 15 Sep 2009 12:23:18 +0000 (+0200) Subject: sched: Fix double_rq_lock() compile warning X-Git-Tag: v2.6.32-rc1~652^2~36 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=b78bb868c54bebbf8d8786a3f8320700d6d2b864;p=~shefty%2Frdma-dev.git sched: Fix double_rq_lock() compile warning Signed-off-by: Peter Zijlstra LKML-Reference: Signed-off-by: Ingo Molnar --- diff --git a/kernel/sched.c b/kernel/sched.c index e27a53685ed..17e4391ec2d 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -119,8 +119,6 @@ */ #define RUNTIME_INF ((u64)~0ULL) -static void double_rq_lock(struct rq *rq1, struct rq *rq2); - static inline int rt_policy(int policy) { if (unlikely(policy == SCHED_FIFO || policy == SCHED_RR)) @@ -1695,6 +1693,8 @@ static inline void update_shares_locked(struct rq *rq, struct sched_domain *sd) #ifdef CONFIG_PREEMPT +static void double_rq_lock(struct rq *rq1, struct rq *rq2); + /* * fair double_lock_balance: Safely acquires both rq->locks in a fair * way at the expense of forcing extra atomic operations in all