Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1330221

Re: [PATCH v2] x86/head64: micro optimization: use memset instead of for loop

From Ingo Molnar <mingo@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH v2] x86/head64: micro optimization: use memset instead of for loop
Date 2016-02-09 14:20 +0100
Message-ID <r0gn0-4x9-5@gated-at.bofh.it> (permalink)
References <r0fAC-3Wc-33@gated-at.bofh.it> <r0gn0-4x9-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


* Alexander Kuleshov <kuleshovmail@gmail.com> wrote:

> This patch simplifies clearing of page table directories, by
> the using of the fast memset() from the arch/x86/lib/memset_64.S.
> Besides this, we 25 bytes is 25 bytes less than original.
> 
> text       data     bss              dec            hex filename
> 
> 9735144 4970776 15474688        30180608        1cc8500 vmlinux.old
> 9735119 4970776 15474688        30180583        1cc84e7 vmlinux
> 
> Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
> ---
> Changelog:
> 
> v2: We got sizeof pud_p/pmd_p in the v1, but actually we need
> to take sizeof of pud_p/pmd_p pointer, although their sizes are
> the same.

Please send a delta patch (with changelog) as the v1 commit is already deep within 
the tip:x86/boot branch.

Thanks,

	Ingo

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] x86/head64: micro optimization: use memset instead of for loop Alexander Kuleshov <kuleshovmail@gmail.com> - 2016-01-30 09:10 +0100
  [tip:x86/boot] x86/boot: Micro-optimize reset_early_page_tables() tip-bot for Alexander Kuleshov <tipbot@zytor.com> - 2016-01-30 09:30 +0100
    Re: [tip:x86/boot] x86/boot: Micro-optimize reset_early_page_tables() Yinghai Lu <yinghai@kernel.org> - 2016-02-05 01:30 +0100
      Re: [tip:x86/boot] x86/boot: Micro-optimize reset_early_page_tables() Ingo Molnar <mingo@kernel.org> - 2016-02-09 13:30 +0100
        [PATCH v2] x86/head64: micro optimization: use memset instead of for loop Alexander Kuleshov <kuleshovmail@gmail.com> - 2016-02-09 14:20 +0100
          Re: [PATCH v2] x86/head64: micro optimization: use memset instead of  for loop Ingo Molnar <mingo@kernel.org> - 2016-02-09 14:20 +0100

csiph-web