Re: x86: memtest bootparam

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andrew Morton
Date: Friday, April 18, 2008 - 4:32 pm

On Fri, 18 Apr 2008 15:07:46 -0700
"Yinghai Lu" <yhlu.kernel@gmail.com> wrote:


Well if there was a single CONFIG_MEMTEST then it would probably be
sufficent to document it all within the Kconfig help for that option.

But there isn't a CONFIG_MEMTEST.  It appears that the presence or absence
of the memtest feature is controlled by CONFIG_MEMTEST_BOOTPARAM which
makes no sense at all!


So... such users shouldn't add the memtest= boot parameter?


I'd suggest the following:

- Add a CONFIG_MEMTEST.  No other config variable needed.

- Put all the memtest code inside #ifdef CONFIG_MEMTEST.

- As part of that memtest code, implement the memtest= boot option

- Make the memtest feature default to "off" if memtest= was not provided.


That's all very simple and conventional?
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: x86: memtest bootparam, Andrew Morton, (Fri Apr 18, 2:52 pm)
Re: x86: memtest bootparam, Yinghai Lu, (Fri Apr 18, 3:07 pm)
Re: x86: memtest bootparam, Andrew Morton, (Fri Apr 18, 4:32 pm)
Re: x86: memtest bootparam, Yinghai Lu, (Fri Apr 18, 5:03 pm)
Re: x86: memtest bootparam, Pavel Machek, (Sat Apr 19, 6:33 am)
Re: x86: memtest bootparam, Yinghai Lu, (Sat Apr 19, 1:54 pm)
Re: x86: memtest bootparam, Ingo Molnar, (Mon Apr 21, 7:17 am)
Re: x86: memtest bootparam, Yinghai Lu, (Mon Apr 21, 9:38 am)