[linux-yocto] [PATCH linux-yocto-4.4 00/14] Add Link Time Optimization

Alejandro Hernandez alejandro.hernandez at linux.intel.com
Mon Feb 13 12:41:13 PST 2017


These set of patches enable Link Time Optimization (LTO), they are meant specifically
for linux-yocto-4.4, another set (rebased) will be sent for linux-yocto-4.8 and
linux-yocto-4.9 respectively, these also complement the series sent to yocto-kernel-cache
a few weeks ago.

Andi Kleen (14):
  Kbuild, lto: Set TMPDIR for LTO v4
  lto: Add __noreorder and mark initcalls __noreorder
  Kbuild, lto: Add Link Time Optimization support
  lto: Disable LTO for hweight functions
  Don't inline __const_udelay
  Mark spinlocks noinline when inline spinlocks are disabled
  Kbuild, bloat-o-meter: Ignore .lto_priv postfix
  Don't let LATENCYTOP and LOCKDEP select KALLSYMS_ALL
  lto, workaround: Disable LTO for BPF
  x86, perf: Fix __initconst declaration in rapl perf driver
  x86, workaround: Disable mm init BUILD_BUG_ON for LTO
  work around linker map issue
  sched: Move sched_to_prio arrays out of line
  fixup! Kbuild, lto: Add Link Time Optimization support

 Documentation/lto-build                     | 173 ++++++++++++++++++++++++++++
 Makefile                                    |  19 ++-
 arch/x86/Kconfig                            |   2 +-
 arch/x86/kernel/cpu/perf_event_intel_rapl.c |   2 +-
 arch/x86/kernel/vmlinux.lds.S               |   2 +
 arch/x86/lib/delay.c                        |   2 +-
 arch/x86/mm/init_32.c                       |   2 +
 include/linux/compiler-gcc.h                |   5 +
 include/linux/compiler.h                    |   4 +
 include/linux/init.h                        |   2 +-
 init/Kconfig                                |  73 ++++++++++++
 kernel/bpf/Makefile                         |   5 +
 kernel/gcov/Kconfig                         |   2 +-
 kernel/locking/spinlock.c                   |  56 ++++-----
 kernel/sched/auto_group.c                   |   2 +-
 kernel/sched/core.c                         |  45 +++++++-
 kernel/sched/sched.h                        |  42 +------
 lib/Kconfig.debug                           |   3 +-
 lib/Makefile                                |   4 +-
 scripts/Makefile.lto                        |  94 +++++++++++++++
 scripts/Makefile.modpost                    |   7 +-
 scripts/bloat-o-meter                       |   1 +
 scripts/gcc-ld                              |   2 +-
 scripts/link-vmlinux.sh                     |   2 +-
 24 files changed, 466 insertions(+), 85 deletions(-)
 create mode 100644 Documentation/lto-build
 create mode 100644 scripts/Makefile.lto

-- 
2.6.6



More information about the linux-yocto mailing list