[patch 5/8] Move prototypes together.

From: Steven Rostedt
Date: Fri Oct 19 2007 - 14:47:52 EST


A later patch uses some of the functions that were declared, and
this patch is used to move those prototypes up with other prototypes
that were declared.

This patch is mainly for prettiness.

Signed-off-by: Steven Rostedt <rostedt@xxxxxxxxxxx>

---
kernel/sched_rt.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)

Index: linux-test.git/kernel/sched_rt.c
===================================================================
--- linux-test.git.orig/kernel/sched_rt.c 2007-10-19 12:35:58.000000000 -0400
+++ linux-test.git/kernel/sched_rt.c 2007-10-19 12:36:02.000000000 -0400
@@ -28,6 +28,8 @@ static void update_curr_rt(struct rq *rq
#ifdef CONFIG_SMP
static __cacheline_aligned_in_smp atomic_t rt_overload;
static cpumask_t rto_cpumask;
+static int double_lock_balance(struct rq *this_rq, struct rq *busiest);
+static void deactivate_task(struct rq *rq, struct task_struct *p, int sleep);
#endif /* CONFIG_SMP*/

static inline void inc_rt_tasks(struct task_struct *p, struct rq *rq)
@@ -133,9 +135,6 @@ static struct task_struct *pick_next_tas
/* Only try algorithms three times */
#define RT_MAX_TRIES 3

-static int double_lock_balance(struct rq *this_rq, struct rq *busiest);
-static void deactivate_task(struct rq *rq, struct task_struct *p, int sleep);
-
static inline void rq_prio_add_task(struct rq *rq, struct task_struct *p)
{
if (unlikely(rt_task(p)) && p->prio < rq->highest_prio)

--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/