From: Steven Rostedt <rostedt@goodmis.org>
To: Ingo Molnar <mingo@elte.hu>
Cc: Lee Revell <rlrevell@joe-job.com>,
david singleton <dsingleton@mvista.com>,
linux-kernel <linux-kernel@vger.kernel.org>,
Thomas Gleixner <tglx@linutronix.de>
Subject: [PATCH -RT] fix i386 RWSEM_GENERIC_SPINLOCK (was: Re: 2.6.15-rc5-rt1 will not compile)
Date: Tue, 13 Dec 2005 09:32:44 -0500 [thread overview]
Message-ID: <1134484364.24145.43.camel@localhost.localdomain> (raw)
In-Reply-To: <20051213081502.GB10088@elte.hu>
On Tue, 2005-12-13 at 09:15 +0100, Ingo Molnar wrote:
> * Steven Rostedt <rostedt@goodmis.org> wrote:
>
> > Looks like Ingo has a generic rwsem to work with, but if your arch
> > turns on CONFIG_RWSEM_XCHGADD_ALGORITHM, it will compile lib/rwsem.c
> > which won't compile as you've seen.
> >
> > Try out this patch: I changed the Makefile, instead of going to each
> > and every arch and change its Kconfig to do it properly.
>
> i rather went for fixing up the Kconfig, that makes things easier to
> follow. If it turns out to be lots of duplicate stuff we could create a
> lib/Kconfig.rwsem that architectures can include.
>
OK, scratch my last patch. I'll submit this arch per arch. Starting
with i386. Each arch does it differently, so a generic lib/Konfig.rwsem
wouldn't work, since each arch has a different dependency.
-- Steve
Quick note:
I originally had: default y if !(RWSEM_GENERIC_SPINLOCK || PREEMPT_RT || M386)
But then I realized that RWSEM_GENERIC_SPINLOCK was dependent on
(PREEMPT_RT || M386) so I thought it was redundant to keep the three,
since RWSEM_GENERIC_SPINLOCK itself satisfies the dependencies.
Index: linux-2.6.15-rc5-rt1/arch/i386/Kconfig
===================================================================
--- linux-2.6.15-rc5-rt1.orig/arch/i386/Kconfig 2005-12-12 16:31:25.000000000 -0500
+++ linux-2.6.15-rc5-rt1/arch/i386/Kconfig 2005-12-13 09:14:33.000000000 -0500
@@ -245,8 +245,7 @@
config RWSEM_XCHGADD_ALGORITHM
bool
- depends on !RWSEM_GENERIC_SPINLOCK && !PREEMPT_RT
- default y
+ default y if !RWSEM_GENERIC_SPINLOCK
config X86_UP_APIC
bool "Local APIC support on uniprocessors"
Index: linux-2.6.15-rc5-rt1/arch/i386/Kconfig.cpu
===================================================================
--- linux-2.6.15-rc5-rt1.orig/arch/i386/Kconfig.cpu 2005-12-12 16:31:20.000000000 -0500
+++ linux-2.6.15-rc5-rt1/arch/i386/Kconfig.cpu 2005-12-13 09:10:54.000000000 -0500
@@ -229,11 +229,6 @@
depends on M386
default y
-config RWSEM_XCHGADD_ALGORITHM
- bool
- depends on !M386
- default y
-
config GENERIC_CALIBRATE_DELAY
bool
default y
Index: linux-2.6.15-rc5-rt1/arch/i386/defconfig
===================================================================
--- linux-2.6.15-rc5-rt1.orig/arch/i386/defconfig 2005-10-27 20:02:08.000000000 -0400
+++ linux-2.6.15-rc5-rt1/arch/i386/defconfig 2005-12-13 09:05:21.000000000 -0500
@@ -81,7 +81,7 @@
CONFIG_X86_CMPXCHG=y
CONFIG_X86_XADD=y
CONFIG_X86_L1_CACHE_SHIFT=7
-CONFIG_RWSEM_XCHGADD_ALGORITHM=y
+# CONFIG_RWSEM_XCHGADD_ALGORITHM is not set
CONFIG_X86_WP_WORKS_OK=y
CONFIG_X86_INVLPG=y
CONFIG_X86_BSWAP=y
next prev parent reply other threads:[~2005-12-13 14:33 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-26 6:52 2.6.14-rt15: cannot build with !PREEMPT_RT Lee Revell
2005-11-26 12:23 ` Ingo Molnar
2005-11-26 19:05 ` Lee Revell
2005-11-26 19:46 ` Thomas Gleixner
2005-11-27 12:30 ` Ingo Molnar
2005-11-27 19:57 ` Lee Revell
2005-11-28 11:44 ` Ingo Molnar
2005-11-28 1:27 ` Lee Revell
2005-11-28 11:48 ` Ingo Molnar
2005-11-28 14:56 ` Lee Revell
2005-11-28 16:00 ` Ingo Molnar
2005-11-28 17:50 ` Lee Revell
2005-11-28 20:34 ` Lee Revell
2005-11-28 22:40 ` Lee Revell
2005-11-29 2:08 ` Lee Revell
2005-11-29 7:29 ` Ingo Molnar
2005-11-29 9:32 ` Ingo Molnar
2005-11-29 23:19 ` Lee Revell
2005-12-09 1:05 ` Lee Revell
2005-12-10 0:25 ` Lee Revell
2005-12-12 17:44 ` 2.6.15-rc5-rt1 will not compile (was Re: 2.6.14-rt15: cannot build with !PREEMPT_RT) Lee Revell
2005-12-12 21:49 ` Steven Rostedt
2005-12-12 22:14 ` Lee Revell
2005-12-12 22:22 ` Steven Rostedt
2005-12-12 22:31 ` Lee Revell
2005-12-12 22:34 ` Steven Rostedt
2005-12-13 3:28 ` Steven Rostedt
2005-12-13 8:08 ` Ingo Molnar
2005-12-16 20:53 ` Lee Revell
2005-12-12 22:39 ` K.R. Foley
2005-12-13 8:15 ` Ingo Molnar
2005-12-13 14:32 ` Steven Rostedt [this message]
2005-12-13 15:03 ` [PATCH -RT] fix i386 RWSEM_GENERIC_SPINLOCK (was: Re: 2.6.15-rc5-rt1 will not compile) Steven Rostedt
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=1134484364.24145.43.camel@localhost.localdomain \
--to=rostedt@goodmis.org \
--cc=dsingleton@mvista.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=rlrevell@joe-job.com \
--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 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.