Re: [PATCH 03/35] lmb: Add ARCH_DISCARD_LMB to put lmb code to .init

From: Yinghai Lu
Date: Fri May 14 2010 - 12:21:27 EST


On 05/14/2010 01:10 AM, Benjamin Herrenschmidt wrote:
> On Thu, 2010-05-13 at 23:21 -0700, Yinghai wrote:
>
>>> So you do not intend to use lmb after boot ? This will break the
>>>
>> debugfs
>>
>>> files unless you also remove those.
>>>
>> no, x86 don't lmb after boot.
>>
>> yes
>>
> So you need some kind of CONFIG option to keep lmb after boot, at least
> the data structures, for debugfs, or when not set, disable the debugfs
> files.
>
>
Just disable the debugfs for lmb if ARCH_DISCARD_LMB is defined in arch
lmb.h

Thanks

Yinghai Lu
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/