diff options
author | Brian Gerst <brgerst@gmail.com> | 2010-09-09 16:17:26 (GMT) |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2010-09-10 08:56:47 (GMT) |
commit | db7829c6cc32f3c0c9a324118d743acb1abff081 (patch) | |
tree | dd40c271aeda63843819072c753af74fefc1413c /drivers/firmware/dell_rbu.c | |
parent | fc1481a956181d0360d3eb129965302489895a1b (diff) | |
download | linux-fsl-qoriq-db7829c6cc32f3c0c9a324118d743acb1abff081.tar.xz |
x86, percpu: Optimize this_cpu_ptr
Allow arches to implement __this_cpu_ptr, and provide an x86 version.
Before:
movq $foo, %rax
movq %gs:this_cpu_off, %rdx
addq %rdx, %rax
After:
movq $foo, %rax
addq %gs:this_cpu_off, %rax
The benefit is doing it in one less instruction and not clobbering
a temporary register.
tj: * Beefed up the comment a bit and renamed in-macro temp variable
to match neighboring macros.
* Folded fix for const pointer case found in linux-next.
* Fixed sparse notation.
Signed-off-by: Brian Gerst <brgerst@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'drivers/firmware/dell_rbu.c')
0 files changed, 0 insertions, 0 deletions