All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gregory Haskins <ghaskins@novell.com>
To: rostedt@goodmis.org
Cc: linux-rt-users@vger.kernel.org, Gregory Haskins <ghaskins@novell.com>
Subject: [PATCH] RT: fix uniprocessor build issue with new scheduler enhancements
Date: Wed, 07 Nov 2007 07:20:14 -0700	[thread overview]
Message-ID: <20071107142014.22153.93619.stgit@lsg> (raw)
In-Reply-To: <1194413959.8827.66.camel@localhost.localdomain>

Primary issue is cpupri_init() is not defined, but also clean up
some warnings related to uniproc builds.

Signed-off-by: Gregory Haskins <ghaskins@novell.com>
CC: Dragan Noveski <perodog@gmx.net>
---

 kernel/sched.c        |    2 ++
 kernel/sched_cpupri.h |    5 +++++
 kernel/sched_rt.c     |    2 +-
 3 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/kernel/sched.c b/kernel/sched.c
index 6f24aa0..365c987 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -863,9 +863,11 @@ static int balance_tasks(struct rq *this_rq, int this_cpu, struct rq *busiest,
 		      int *all_pinned, unsigned long *load_moved,
 		      int *this_best_prio, struct rq_iterator *iterator);
 
+#ifdef CONFIG_SMP
 static unsigned long source_load(int cpu, int type);
 static unsigned long target_load(int cpu, int type);
 static unsigned long cpu_avg_load_per_task(int cpu);
+#endif /* CONFIG_SMP */
 
 #include "sched_stats.h"
 #include "sched_rt.c"
diff --git a/kernel/sched_cpupri.h b/kernel/sched_cpupri.h
index 8cdd15d..2119495 100644
--- a/kernel/sched_cpupri.h
+++ b/kernel/sched_cpupri.h
@@ -5,6 +5,11 @@
 
 int  cpupri_find(struct task_struct *p, cpumask_t *lowest_mask);
 void cpupri_set(int cpu, int pri);
+
+#ifdef CONFIG_SMP
 void cpupri_init(void);
+#else
+#define cpupri_init() do { } while(0)
+#endif
 
 #endif /* _LINUX_CPUPRI_H */
diff --git a/kernel/sched_rt.c b/kernel/sched_rt.c
index 71ae9e6..0213aa2 100644
--- a/kernel/sched_rt.c
+++ b/kernel/sched_rt.c
@@ -207,9 +207,9 @@ yield_task_rt(struct rq *rq, struct task_struct *p)
 	requeue_task_rt(rq, p);
 }
 
+#ifdef CONFIG_SMP
 static int find_lowest_rq(struct task_struct *task);
 
-#ifdef CONFIG_SMP
 static int select_task_rq_rt(struct task_struct *p, int sync)
 {
 	struct rq *rq = task_rq(p);

  parent reply	other threads:[~2007-11-07 14:20 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-07  5:39 2.6.23.1-rt9 (and others) Steven Rostedt
2007-11-07 14:17 ` Dragan Noveski
2007-11-07 13:40   ` Gregory Haskins
2007-11-07 15:10     ` Dragan Noveski
2007-11-07 16:33       ` Steven Rostedt
2007-11-07 20:40         ` Dragan Noveski
2007-11-07 18:10     ` Dragan Noveski
2007-11-07 18:11     ` Dragan Noveski
2007-11-07 14:20 ` Gregory Haskins [this message]
2007-11-07 15:41 ` Steven Rostedt
2007-11-07 22:51   ` Gregory Haskins
2007-11-07 20:41 ` Dragan Noveski
2007-11-07 19:59   ` Steven Rostedt
2007-11-07 21:04     ` Dragan Noveski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20071107142014.22153.93619.stgit@lsg \
    --to=ghaskins@novell.com \
    --cc=linux-rt-users@vger.kernel.org \
    --cc=rostedt@goodmis.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.