Andi Kleen
c8399943bd
x86, generic: mark complex bitops.h inlines as __always_inline
...
Impact: reduce kernel image size
Hugh Dickins noticed that older gcc versions when the kernel
is built for code size didn't inline some of the bitops.
Mark all complex x86 bitops that have more than a single
asm statement or two as always inline to avoid this problem.
Probably should be done for other architectures too.
Ingo then found a better fix that only requires
a single line change, but it unfortunately only
works on gcc 4.3.
On older gccs the original patch still makes a ~0.3% defconfig
difference with CONFIG_OPTIMIZE_INLINING=y.
With gcc 4.1 and a defconfig like build:
6116998 1138540 883788 8139326 7c323e vmlinux-oi-with-patch
6137043 1138540 883788 8159371 7c808b vmlinux-optimize-inlining
~20k / 0.3% difference.
Signed-off-by: Andi Kleen <[email protected] >
Signed-off-by: Andrew Morton <[email protected] >
Signed-off-by: Ingo Molnar <[email protected] >
2009-01-13 18:56:30 +01:00
..
bitops
x86, generic: mark complex bitops.h inlines as __always_inline
2009-01-13 18:56:30 +01:00
4level-fixup.h
atomic.h
atomic: fix a typo in atomic_long_xchg()
2008-12-10 08:01:53 -08:00
audit_change_attr.h
audit_dir_write.h
audit_read.h
audit_signal.h
audit_write.h
[PATCH] asm/generic: fix bug - kernel fails to build when enable some common audit code on Blackfin
2008-12-09 02:27:39 -05:00
bitops.h
bug.h
documentation: when to BUG(), and when to not BUG()
2009-01-06 15:59:13 -08:00
cmpxchg-local.h
cmpxchg.h
cputime.h
device.h
div64.h
dma-coherent.h
dma-mapping-broken.h
dma-mapping: add the device argument to dma_mapping_error()
2008-07-26 12:00:03 -07:00
dma-mapping.h
dma-mapping: add the device argument to dma_mapping_error()
2008-07-26 12:00:03 -07:00
emergency-restart.h
errno-base.h
errno.h
fcntl.h
futex.h
gpio.h
gpiolib: request/free hooks
2008-10-16 11:21:40 -07:00
ide_iops.h
int-l64.h
int-ll64.h
asm-generic/int-ll64.h: always provide __{s,u}64
2008-07-25 10:53:27 -07:00
ioctl.h
Make ioctl.h compatible with userland
2008-08-12 16:07:31 -07:00
iomap.h
irq_regs.h
Kbuild
Kbuild.asm
Fix conditional export of kvh.h and a.out.h to userspace.
2008-09-05 15:44:31 +01:00
kdebug.h
asm-generic: define DIE_OOPS in asm-generic
2008-10-27 11:39:03 +01:00
libata-portmap.h
local.h
remove linux/hardirq.h from asm-generic/local.h
2009-01-06 15:59:13 -08:00
memory_model.h
mm: remove CONFIG_OUT_OF_LINE_PFN_TO_PAGE
2009-01-06 15:59:10 -08:00
mm_hooks.h
mman.h
mutex-dec.h
mutex: speed up generic mutex implementations
2008-10-23 09:18:20 -07:00
mutex-null.h
mutex-xchg.h
mutex: speed up generic mutex implementations
2008-10-23 09:18:20 -07:00
page.h
pci-dma-compat.h
dma-mapping: add the device argument to dma_mapping_error()
2008-07-26 12:00:03 -07:00
pci.h
percpu.h
pgtable-nopmd.h
include/asm-generic/pgtable-nopmd.h: macros are noxious, reason #435
2008-07-28 16:30:21 -07:00
pgtable-nopud.h
pgtable.h
x86: PAT: move track untrack pfnmap stubs to asm-generic
2008-12-19 15:40:30 -08:00
poll.h
resource.h
rtc.h
rtc: use bcd2bin/bin2bcd
2008-10-20 08:52:41 -07:00
sections.h
lib: Correct printk %pF to work on all architectures
2008-09-09 11:51:15 -07:00
siginfo.h
signals: demultiplexing SIGTRAP signal
2008-09-23 13:26:52 +02:00
signal.h
statfs.h
Make <asm-generic/statfs.h> suitable for 64-bit platforms.
2008-09-04 09:46:08 +01:00
syscall.h
tracehook: comment pasto fixes
2008-09-05 14:39:38 -07:00
termios.h
tlb.h
topology.h
cpumask: Introduce cpumask_of_{node,pcibus} to replace {node,pcibus}_to_cpumask
2008-12-13 21:20:27 +10:30
uaccess.h
vmlinux.lds.h
tracing/function-graph-tracer: add a new .irqentry.text section
2008-12-12 11:14:07 +01:00
xor.h