public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* PATCH [0/2] percpu: Local cpu pointer optimizations
@ 2010-09-04 17:21 Brian Gerst
  2010-09-04 17:21 ` [PATCH 1/2] x86, percpu: Optimize this_cpu_ptr Brian Gerst
  2010-09-04 17:21 ` [PATCH 2/2] percpu: Optimize __get_cpu_var() Brian Gerst
  0 siblings, 2 replies; 5+ messages in thread
From: Brian Gerst @ 2010-09-04 17:21 UTC (permalink / raw)
  To: tj; +Cc: x86, linux-kernel

This patch set allows arches to provide an optimized way of shifting
a per-cpu pointer for the current cpu.  

On an x86-32 defconfig build, these patches save 1304 bytes of text.

   text	   data	    bss	    dec	    hex	filename
7298335	 717480	1374104	9389919	 8f475f	vmlinux.orig
7297283	 717480	1374104	9388867	 8f4343	vmlinux.1
7297031	 717480	1374104	9388615	 8f4247	vmlinux.2

[PATCH 1/2] x86, percpu: Optimize this_cpu_ptr
[PATCH 2/2] percpu: Optimize __get_cpu_var()

 arch/x86/include/asm/percpu.h |    9 +++++++++
 include/asm-generic/percpu.h  |   14 +++++++++-----
 2 files changed, 18 insertions(+), 5 deletions(-)

^ permalink raw reply	[flat|nested] 5+ messages in thread
* PATCH [0/2] percpu: Local cpu pointer optimizations
@ 2010-09-07 11:41 Brian Gerst
  2010-09-07 11:41 ` [PATCH 1/2] x86, percpu: Optimize this_cpu_ptr Brian Gerst
  0 siblings, 1 reply; 5+ messages in thread
From: Brian Gerst @ 2010-09-07 11:41 UTC (permalink / raw)
  To: tj; +Cc: x86, linux-kernel

This patch set allows arches to provide an optimized way of shifting
a per-cpu pointer for the current cpu.

On an x86-32 defconfig build, these patches save 1304 bytes of text.

  text    data     bss     dec     hex filename
7298335  717480 1374104 9389919  8f475f vmlinux.orig
7297283  717480 1374104 9388867  8f4343 vmlinux.1
7297031  717480 1374104 9388615  8f4247 vmlinux.2

[PATCH 1/2] x86, percpu: Optimize this_cpu_ptr
[PATCH 2/2] percpu: Optimize __get_cpu_var()

 arch/x86/include/asm/percpu.h |   11 +++++++++++
 include/asm-generic/percpu.h  |   14 +++++++++-----
 2 files changed, 20 insertions(+), 5 deletions(-)

v2: Added comments

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-09-07 11:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-04 17:21 PATCH [0/2] percpu: Local cpu pointer optimizations Brian Gerst
2010-09-04 17:21 ` [PATCH 1/2] x86, percpu: Optimize this_cpu_ptr Brian Gerst
2010-09-05  9:20   ` Tejun Heo
2010-09-04 17:21 ` [PATCH 2/2] percpu: Optimize __get_cpu_var() Brian Gerst
  -- strict thread matches above, loose matches on Subject: below --
2010-09-07 11:41 PATCH [0/2] percpu: Local cpu pointer optimizations Brian Gerst
2010-09-07 11:41 ` [PATCH 1/2] x86, percpu: Optimize this_cpu_ptr Brian Gerst

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox