[U-Boot] [PATCH v5 5/7] trats2: defconfig: disable memset at malloc init

Lukasz Majewski l.majewski at samsung.com
Tue Feb 24 15:39:15 CET 2015


Hi Przemyslaw,

> Reduce the boot time of Trats2 by disabling the memset
> at malloc init.
> 
> This was tested on Trats2.
> A quick test with trace. Boot time from start to main_loop() entry:
> - ~464ms - before this change (arch memset enabled for .bss clear)
> - ~341ms - after this change
> 
> Signed-off-by: Przemyslaw Marczak <p.marczak at samsung.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>
> 
> ---
> Changes V3
> - none
> 
> Changes V4
> - trats2_defconfig: remove CONFIG_EXPERT
> - trats2_defconfig: disable CONFIG_SYS_MALLOC_INIT_DO_ZEROING
> 
> Changes v5:
> - update disabled config name to CONFIG_SYS_MALLOC_CLEAR_ON_INIT
> ---
>  configs/trats2_defconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/configs/trats2_defconfig b/configs/trats2_defconfig
> index 1b98b73..9359706 100644
> --- a/configs/trats2_defconfig
> +++ b/configs/trats2_defconfig
> @@ -3,3 +3,4 @@ CONFIG_ARCH_EXYNOS=y
>  CONFIG_TARGET_TRATS2=y
>  CONFIG_OF_CONTROL=y
>  CONFIG_DEFAULT_DEVICE_TREE="exynos4412-trats2"
> +# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set

Acked-by: Lukasz Majewski <l.majewski at samsung.com>

-- 
Best regards,

Lukasz Majewski

Samsung R&D Institute Poland (SRPOL) | Linux Platform Group


More information about the U-Boot mailing list