[PATCH] purgatory: compile sha256.c only on ia64 with -O0

Zhang Yanfei zhangyanfei at cn.fujitsu.com
Sun Mar 31 21:59:42 EDT 2013


于 2013年04月01日 04:59, Richard Weinberger 写道:
> If we have to compile sha256.c on ia64 with -O0 to produce sane code
> do it only on ia64.
> 
> This change makes executing a new kernel on my AMD geode CPU much faster.
> Without the patch "kexec -e" takes 27 seconds, with only 16.
> 
> Signed-off-by: Richard Weinberger <richard at nod.at>
> ---
>  purgatory/Makefile           | 15 +--------------
>  purgatory/arch/ia64/Makefile |  3 +++
>  2 files changed, 4 insertions(+), 14 deletions(-)

The fix is sound.

Reviewed-by: Zhang Yanfei <zhangyanfei at cn.fujitsu.com>



More information about the kexec mailing list