lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Tue,  7 Sep 2010 07:41:08 -0400
From:	Brian Gerst <brgerst@...il.com>
To:	tj@...nel.org
Cc:	x86@...nel.org, linux-kernel@...r.kernel.org
Subject: PATCH [0/2] percpu: Local cpu pointer optimizations

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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ