From: Daniel Walker <dwalker@mvista.com>
To: Rui Nuno Capela <rncbc@rncbc.org>
Cc: Ingo Molnar <mingo@elte.hu>,
linux-kernel@vger.kernel.org, linux-rt-users@vger.kernel.org,
Thomas Gleixner <tglx@linutronix.de>
Subject: Re: v2.6.22.1-rt5
Date: Mon, 23 Jul 2007 14:30:26 -0700 [thread overview]
Message-ID: <1185226226.2573.147.camel@imap.mvista.com> (raw)
In-Reply-To: <46A51D9E.8040104@rncbc.org>
On Mon, 2007-07-23 at 22:29 +0100, Rui Nuno Capela wrote:
> Ingo Molnar wrote:
> > we are pleased to announce the v2.6.22.1-rt5 kernel (collected and
> > assembled by Thomas), which can be downloaded from the usual place:
> >
> > http://redhat.com/~mingo/realtime-preempt/
> >
> > more info about the -rt patchset can be found in the RT wiki:
> >
> > http://rt.wiki.kernel.org
> >
> > Changes since -rt4:
> >
> > - MM fix: PCP pages locking (Peter Zijlstra)
> >
> > - yield() fix: remove stale RCU-unlock (Daniel Walker)
> >
> > - dont do check_pgt_cache() in idle (found by Daniel Walker)
> >
> > - moved 8 patches, created 6 new patches out of larger patches to
> > make the -rt queue more bisectable (Daniel Walker)
> >
> > - cleanup (Daniel Walker)
> >
> > - fix the latency tracer under paravirt
> >
> > to build a 2.6.22.1-rt5 tree, the following patches should be applied:
> >
> > http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.22.1.tar.bz2
> > http://redhat.com/~mingo/realtime-preempt/patch-2.6.22.1-rt5
> >
> > Ingo
> > -
>
> Maybe I was too quick, but `make all` on is failing here:
>
> ...
> In file included from arch/i386/mm/pgtable.c:16:
> include/linux/quicklist.h: In function ‘quicklist_alloc’:
> include/linux/quicklist.h:50: warning: unused variable ‘q’
> include/linux/quicklist.h: In function ‘__quicklist_free’:
> include/linux/quicklist.h:79: error: ‘per_cpu__quicklist’ undeclared
> (first use in this function)
> include/linux/quicklist.h:79: error: (Each undeclared identifier is
> reported only once
> include/linux/quicklist.h:79: error: for each function it appears in.)
> include/linux/quicklist.h:79: warning: type defaults to ‘int’ in
> declaration of ‘type name’
> include/linux/quicklist.h:79: error: invalid type argument of ‘unary *’
> make[1]: *** [arch/i386/mm/pgtable.o] Error 1
> make: *** [arch/i386/mm] Error 2
Yeah, the quicklist patch wasn't fully tested .. The delta patch below
is what I had to change to get it working ..
Signed-Off-By: Daniel Walker <dwalker@mvista.com>
diff -u linux-2.6/include/linux/quicklist.h linux-2.6.22.1/include/linux/quicklist.h
--- linux-2.6/include/linux/quicklist.h
+++ linux-2.6.22.1/include/linux/quicklist.h
@@ -47,7 +47,6 @@
static inline void *quicklist_alloc(int nr, gfp_t flags, void (*ctor)(void *))
{
- struct quicklist *q;
void **p = NULL;
int cpu;
@@ -66,6 +65,7 @@
static inline void __quicklist_free(int nr, void (*dtor)(void *), void *p,
struct page *page)
{
+ int cpu;
struct quicklist *q;
int nid = page_to_nid(page);
@@ -76,11 +76,11 @@
return;
}
- q = &get_cpu_var(quicklist)[nr];
+ q = &get_cpu_var_locked(quicklist, &cpu)[nr];
*(void **)p = q->page;
q->page = p;
q->nr_pages++;
- put_cpu_var(quicklist);
+ put_cpu_var_locked(quicklist, cpu);
}
static inline void quicklist_free(int nr, void (*dtor)(void *), void *pp)
diff -u linux-2.6/mm/quicklist.c linux-2.6.22.1/mm/quicklist.c
--- linux-2.6/mm/quicklist.c
+++ linux-2.6.22.1/mm/quicklist.c
@@ -80,7 +80,7 @@
struct quicklist *ql, *q;
for_each_online_cpu(cpu) {
- ql = per_cpu(quicklist, cpu);
+ ql = per_cpu_var_locked(quicklist, cpu);
for (q = ql; q < ql + CONFIG_NR_QUICK; q++)
count += q->nr_pages;
}
next prev parent reply other threads:[~2007-07-23 21:42 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-23 21:02 v2.6.22.1-rt5 Ingo Molnar
2007-07-23 21:29 ` v2.6.22.1-rt5 Rui Nuno Capela
2007-07-23 21:30 ` Daniel Walker [this message]
2007-07-23 22:05 ` v2.6.22.1-rt5 Thomas Gleixner
2007-07-23 22:11 ` v2.6.22.1-rt5 Thomas Gleixner
2007-07-24 7:39 ` v2.6.22.1-rt5 Ingo Molnar
2007-07-24 19:34 ` v2.6.22.1-rt5 Fernando Lopez-Lezcano
2007-07-24 19:35 ` v2.6.22.1-rt5 Fernando Lopez-Lezcano
2007-07-24 20:05 ` v2.6.22.1-rt5 Ingo Molnar
2007-07-24 20:23 ` v2.6.22.1-rt5 Fernando Lopez-Lezcano
2007-07-24 20:34 ` v2.6.22.1-rt5 Ingo Molnar
2007-07-24 20:38 ` v2.6.22.1-rt5 Fernando Lopez-Lezcano
2007-07-25 7:34 ` v2.6.22.1-rt5 Alessio Igor Bogani
2007-07-24 12:04 v2.6.22.1-rt5 Ingo Molnar
2007-07-24 13:18 ` v2.6.22.1-rt5 Andi Kleen
2007-07-24 15:56 ` v2.6.22.1-rt5 Gene Heskett
2007-07-24 19:10 ` v2.6.22.1-rt5 Ingo Molnar
2007-07-25 1:29 ` v2.6.22.1-rt5 Gene Heskett
2007-07-25 1:36 ` v2.6.22.1-rt5 Gene Heskett
2007-07-25 7:52 ` v2.6.22.1-rt5 Ingo Molnar
2007-07-25 1:42 ` v2.6.22.1-rt5 Gene Heskett
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=1185226226.2573.147.camel@imap.mvista.com \
--to=dwalker@mvista.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rt-users@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=rncbc@rncbc.org \
--cc=tglx@linutronix.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®