From: Thomas Gleixner <tglx@linutronix.de>
To: Oleksandr Natalenko <pfactum@gmail.com>
Cc: linux-rt-users@vger.kernel.org
Subject: Re: v2.6.21.4-rt11
Date: Sun, 10 Jun 2007 16:41:26 +0200 [thread overview]
Message-ID: <1181486486.384.18.camel@chaos> (raw)
In-Reply-To: <loom.20070610T123332-722@post.gmane.org>
On Sun, 2007-06-10 at 10:34 +0000, Oleksandr Natalenko wrote:
> > http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.21.4.tar.bz2
> > http://people.redhat.com/mingo/realtime-preempt/patch-2.6.21.4-rt11
> kernel/built-in.o: In function `__schedule':
> (.sched.text+0xe0): undefined reference to `pick_next_task'
> make[1]: *** [.tmp_vmlinux1] Ошибка 1
> make[1]: Leaving directory `/usr/src/linux-2.6.21.4-rt11-cfs17-arsenic'
> make: *** [debian/stamp-build-kernel] Ошибка 2
>
> It seems that patch is broken.
Yup, for CONFIG_SMP=n and for CONFIG_PREEMPT_RT=n.
Fix below
tglx
Index: linux-2.6.21/kernel/sched.c
===================================================================
--- linux-2.6.21.orig/kernel/sched.c 2007-06-10 16:00:58.000000000 +0200
+++ linux-2.6.21/kernel/sched.c 2007-06-10 16:46:23.000000000 +0200
@@ -827,6 +827,25 @@ unsigned long weighted_cpuload(const int
return cpu_rq(cpu)->raw_weighted_load;
}
+static inline struct task_struct *
+pick_next_task(struct rq *rq, struct task_struct *prev)
+{
+ struct sched_class *class = sched_class_highest;
+ u64 now = __rq_clock(rq);
+ struct task_struct *p;
+
+ prev->sched_class->put_prev_task(rq, prev, now);
+
+ do {
+ p = class->pick_next_task(rq, now);
+ if (p)
+ return p;
+ class = class->next;
+ } while (class);
+
+ return NULL;
+}
+
#ifdef CONFIG_SMP
static inline void __set_task_cpu(struct task_struct *p, unsigned int cpu)
@@ -1093,25 +1112,6 @@ next_in_queue:
static int double_lock_balance(struct rq *this_rq, struct rq *busiest);
-static inline struct task_struct *
-pick_next_task(struct rq *rq, struct task_struct *prev)
-{
- struct sched_class *class = sched_class_highest;
- u64 now = __rq_clock(rq);
- struct task_struct *p;
-
- prev->sched_class->put_prev_task(rq, prev, now);
-
- do {
- p = class->pick_next_task(rq, now);
- if (p)
- return p;
- class = class->next;
- } while (class);
-
- return NULL;
-}
-
/*
* Pull RT tasks from other CPUs in the RT-overload
* case. Interrupts are disabled, local rq is locked.
Index: linux-2.6.21/kernel/time/clockevents.c
===================================================================
--- linux-2.6.21.orig/kernel/time/clockevents.c 2007-06-10 16:00:57.000000000 +0200
+++ linux-2.6.21/kernel/time/clockevents.c 2007-06-10 16:45:40.000000000 +0200
@@ -18,6 +18,7 @@
#include <linux/notifier.h>
#include <linux/smp.h>
#include <linux/sysdev.h>
+#include <linux/sched.h>
/* The registered clock event devices */
static LIST_HEAD(clockevent_devices);
next prev parent reply other threads:[~2007-06-10 14:41 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-09 21:05 v2.6.21.4-rt11 Ingo Molnar
2007-06-10 10:34 ` v2.6.21.4-rt11 Oleksandr Natalenko
2007-06-10 14:41 ` Thomas Gleixner [this message]
2007-06-11 1:19 ` v2.6.21.4-rt11 Paul E. McKenney
2007-06-11 7:36 ` v2.6.21.4-rt11 Ingo Molnar
2007-06-11 14:44 ` v2.6.21.4-rt11 Paul E. McKenney
2007-06-11 15:38 ` v2.6.21.4-rt11 Ingo Molnar
2007-06-11 15:55 ` v2.6.21.4-rt11 Paul E. McKenney
2007-06-11 17:18 ` v2.6.21.4-rt11 Paul E. McKenney
2007-06-11 20:44 ` v2.6.21.4-rt11 Paul E. McKenney
2007-06-11 22:18 ` v2.6.21.4-rt11 Paul E. McKenney
2007-06-12 21:37 ` v2.6.21.4-rt11 Ingo Molnar
2007-06-13 1:27 ` v2.6.21.4-rt11 Paul E. McKenney
2007-06-12 6:03 ` v2.6.21.4-rt11 Eric St-Laurent
2007-06-12 7:32 ` v2.6.21.4-rt11 Ingo Molnar
2007-06-12 13:00 ` v2.6.21.4-rt11 Pallipadi, Venkatesh
2007-06-13 1:37 ` v2.6.21.4-rt11 Eric St-Laurent
2007-06-17 16:15 ` v2.6.21.4-rt11 Nelson Castillo
2007-06-17 16:43 ` v2.6.21.4-rt11 Thomas Gleixner
2007-06-17 16:49 ` v2.6.21.4-rt11 Nelson Castillo
2007-06-17 16:59 ` v2.6.21.4-rt11 Thomas Gleixner
2007-06-18 16:14 ` v2.6.21.4-rt11 Katsuya MATSUBARA
2007-06-19 4:04 ` v2.6.21.4-rt11 Thomas Gleixner
-- strict thread matches above, loose matches on Subject: below --
2007-06-10 17:50 v2.6.21.4-rt11 Miguel Botón
[not found] <20070613180451.GA16628@elte.hu>
[not found] ` <20070613184741.GC8125@linux.vnet.ibm.com>
[not found] ` <20070613185522.GA27335@elte.hu>
[not found] ` <20070613233910.GJ8125@linux.vnet.ibm.com>
[not found] ` <20070615144535.GA12078@elte.hu>
[not found] ` <20070615151452.GC9301@linux.vnet.ibm.com>
[not found] ` <20070615195545.GA28872@elte.hu>
[not found] ` <20070616011605.GH9301@linux.vnet.ibm.com>
[not found] ` <20070616084434.GG2559@linux.vnet.ibm.com>
[not found] ` <20070616161213.GA2994@linux.vnet.ibm.com>
2007-06-18 15:12 ` v2.6.21.4-rt11 Srivatsa Vaddagiri
2007-06-18 16:54 ` v2.6.21.4-rt11 Christoph Lameter
2007-06-18 17:35 ` v2.6.21.4-rt11 Srivatsa Vaddagiri
2007-06-18 17:59 ` v2.6.21.4-rt11 Christoph Lameter
2007-06-19 1:52 ` v2.6.21.4-rt11 Srivatsa Vaddagiri
2007-06-19 2:13 ` v2.6.21.4-rt11 Siddha, Suresh B
2007-06-19 2:15 ` v2.6.21.4-rt11 Siddha, Suresh B
2007-06-19 3:46 ` v2.6.21.4-rt11 Christoph Lameter
2007-06-19 5:49 ` v2.6.21.4-rt11 Srivatsa Vaddagiri
2007-06-19 8:07 ` v2.6.21.4-rt11 Ingo Molnar
2007-06-18 18:06 ` v2.6.21.4-rt11 Srivatsa Vaddagiri
2007-06-19 9:04 ` v2.6.21.4-rt11 Ingo Molnar
2007-06-19 10:43 ` v2.6.21.4-rt11 Srivatsa Vaddagiri
2007-06-19 14:33 ` v2.6.21.4-rt11 Srivatsa Vaddagiri
2007-06-19 19:15 ` v2.6.21.4-rt11 Christoph Lameter
2007-06-19 15:08 ` v2.6.21.4-rt11 Paul E. McKenney
2007-06-19 19:14 ` v2.6.21.4-rt11 Christoph Lameter
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=1181486486.384.18.camel@chaos \
--to=tglx@linutronix.de \
--cc=linux-rt-users@vger.kernel.org \
--cc=pfactum@gmail.com \
/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.