Re: [PATCH] FRV: Permit the memory to be located elsewhere in NOMMU mode

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: David Howells <dhowells@...>
Cc: <akpm@...>, <rpjday@...>, <linux-kernel@...>
Date: Monday, October 29, 2007 - 12:28 pm

On Mon, 29 Oct 2007, David Howells wrote:
...

Please don't do these kinds of things in the source code.

Do them in the Kconfig language where it belongs, and where it makes much 
more sense.

See, for example, arch/x86/Kconfig.i386:

	config PAGE_OFFSET
	        hex
	        default 0xB0000000 if VMSPLIT_3G_OPT
	        default 0x80000000 if VMSPLIT_2G
	        default 0x78000000 if VMSPLIT_2G_OPT
	        default 0x40000000 if VMSPLIT_1G
	        default 0xC0000000

Notice? Even the syntax is much cleaner!

		Linus
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] FRV: Permit the memory to be located elsewhere i..., Linus Torvalds, (Mon Oct 29, 12:28 pm)