login
Header Space

 
 

Re: x86 merge - a little feedback

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andi Kleen <ak@...>
Cc: Adrian Bunk <bunk@...>, Sam Ravnborg <sam@...>, Thomas Gleixner <tglx@...>, Ingo Molnar <mingo@...>, Linus Torvalds <torvalds@...>, LKML <linux-kernel@...>
Date: Tuesday, September 11, 2007 - 8:29 pm

On Tue, Sep 11, 2007 at 10:34:23PM +0100, Andi Kleen wrote:
As I was the first one to do CONFIG_MMU=y/n in the same arch directory,
since 2.5, I can tell you that that's simply crap. The only reason
CONFIG_MMU=n gets broken all the time is because people don't think about
it in generic code, it's rarely broken in the architecture code, and even
with the most occasional of build tests most of that gets caught in a
hurry.

You do of course have to consider both cases when writing new code, but
those things tend to be pretty obvious. It's a bit more work for the arch
maintainer, but it's certainly far less confusing and problematic than
separating things out.

In fact, going the opposite route is what leads to endless trouble in the
long run, since you brought up the MMUless example, m68knommu is a good
example. Rather than beginning life in arch/m68k, it was forked off,
mostly to deal with the ColdFire CPUs that weren't planned to have MMUs.
Now that the product line has moved along, adding an MMU to it is in the
roadmap, which means that inevitably they're both going to have to be
combined anyways. Simply dealing with the initial trouble of having them
combined initially would have solved a lot of that mess.

You can ignore the added maintenance for as long as possible, but sooner
or later it's going to be a problem. Procrastination is not something
that bodes particularly well for divergent hardware support.
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
x86 merge - a little feedback, Sam Ravnborg, (Tue Sep 11, 4:12 pm)
Re: x86 merge - a little feedback, Linus Torvalds, (Tue Sep 11, 5:21 pm)
Re: x86 merge - a little feedback, Sam Ravnborg, (Wed Sep 12, 3:09 pm)
Re: x86 merge - a little feedback, Andi Kleen, (Tue Sep 11, 4:38 pm)
Re: x86 merge - a little feedback, Adrian Bunk, (Tue Sep 11, 5:14 pm)
Re: x86 merge - a little feedback, Andrew Morton, (Sat Sep 15, 5:32 am)
Re: x86 merge - a little feedback, Andi Kleen, (Sat Sep 15, 2:36 pm)
Re: x86 merge - a little feedback, Andrew Morton, (Sun Sep 16, 1:08 am)
Re: x86 merge - a little feedback, Andi Kleen, (Tue Sep 11, 5:34 pm)
Re: x86 merge - a little feedback, Paul Mundt, (Tue Sep 11, 8:29 pm)
Re: x86 merge - a little feedback, Andrew Morton, (Sat Sep 15, 6:55 am)
Re: x86 merge - a little feedback, Linus Torvalds, (Tue Sep 11, 5:51 pm)
Re: x86 merge - a little feedback, Jan Engelhardt, (Wed Sep 12, 2:14 pm)
Re: x86 merge - a little feedback, Adrian Bunk, (Tue Sep 11, 5:51 pm)
Re: x86 merge - a little feedback, Adrian Bunk, (Tue Sep 11, 4:34 pm)
Re: x86 merge - a little feedback, Christoph Hellwig, (Wed Sep 12, 5:27 am)
Re: x86 merge - a little feedback, Lennart Sorensen, (Wed Sep 12, 8:45 am)
Re: x86 merge - a little feedback, Sam Ravnborg, (Tue Sep 11, 5:05 pm)
Re: x86 merge - a little feedback, Adrian Bunk, (Tue Sep 11, 5:09 pm)
Re: x86 merge - a little feedback, Thomas Gleixner, (Tue Sep 11, 4:25 pm)
Re: x86 merge - a little feedback, Linus Torvalds, (Tue Sep 11, 5:24 pm)
speck-geostationary