lkml.org 
[lkml]   [2010]   [Sep]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectPATCH [0/2] percpu: Local cpu pointer optimizations
Date
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(-)


\
 
 \ /
  Last update: 2010-09-04 19:25    [W:0.045 / U:0.664 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site