Merge git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 29 Mar 2012 21:49:45 +0000 (14:49 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 29 Mar 2012 21:49:45 +0000 (14:49 -0700)
Pull arch/tile (really asm-generic) update from Chris Metcalf:
 "These are a couple of asm-generic changes that apply to tile."

* git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile:
  compat: use sys_sendfile64() implementation for sendfile syscall
  [PATCH v3] ipc: provide generic compat versions of IPC syscalls

1  2 
arch/Kconfig
arch/mips/Kconfig
arch/powerpc/Kconfig
arch/s390/Kconfig
arch/sparc/Kconfig
arch/x86/Kconfig

diff --combined arch/Kconfig
index a6f14f622d1388bee0a6663679762f155991dadc,b37f8f3ffa547dba4711111831c71423f829e526..684eb5af439dc5cee005f51675c2db814a29bf38
@@@ -47,29 -47,18 +47,29 @@@ config KPROBE
          If in doubt, say "N".
  
  config JUMP_LABEL
 -       bool "Optimize trace point call sites"
 +       bool "Optimize very unlikely/likely branches"
         depends on HAVE_ARCH_JUMP_LABEL
         help
 +         This option enables a transparent branch optimization that
 +       makes certain almost-always-true or almost-always-false branch
 +       conditions even cheaper to execute within the kernel.
 +
 +       Certain performance-sensitive kernel code, such as trace points,
 +       scheduler functionality, networking code and KVM have such
 +       branches and include support for this optimization technique.
 +
           If it is detected that the compiler has support for "asm goto",
 -       the kernel will compile trace point locations with just a
 -       nop instruction. When trace points are enabled, the nop will
 -       be converted to a jump to the trace function. This technique
 -       lowers overhead and stress on the branch prediction of the
 -       processor.
 +       the kernel will compile such branches with just a nop
 +       instruction. When the condition flag is toggled to true, the
 +       nop will be converted to a jump instruction to execute the
 +       conditional block of instructions.
 +
 +       This technique lowers overhead and stress on the branch prediction
 +       of the processor and generally makes the kernel faster. The update
 +       of the condition is slower, but those are always very rare.
  
 -       On i386, options added to the compiler flags may increase
 -       the size of the kernel slightly.
 +       ( On 32-bit x86, the necessary options added to the compiler
 +         flags may increase the size of the kernel slightly. )
  
  config OPTPROBES
        def_bool y
@@@ -120,9 -109,6 +120,9 @@@ config HAVE_KRETPROBE
  
  config HAVE_OPTPROBES
        bool
 +
 +config HAVE_NMI_WATCHDOG
 +      bool
  #
  # An arch should select this if it provides all these things:
  #
@@@ -213,4 -199,7 +213,7 @@@ config HAVE_CMPXCHG_LOCA
  config HAVE_CMPXCHG_DOUBLE
        bool
  
+ config ARCH_WANT_OLD_COMPAT_IPC
+       bool
  source "kernel/gcov/Kconfig"
diff --combined arch/mips/Kconfig
index edbbae17e8209e08833bb8acc6801c433cb1ee1f,4bbbb40f352adb3120519bdb64a7a02013ef0db3..ce30e2f91d7748c0c36eb8847390bd101192a044
@@@ -2327,7 -2327,6 +2327,7 @@@ config USE_O
        bool "Flattened Device Tree support"
        select OF
        select OF_EARLY_FLATTREE
 +      select IRQ_DOMAIN
        help
          Include support for flattened device tree machine descriptions.
  
@@@ -2457,6 -2456,7 +2457,7 @@@ config MIPS32_COMPA
  config COMPAT
        bool
        depends on MIPS32_COMPAT
+       select ARCH_WANT_OLD_COMPAT_IPC
        default y
  
  config SYSVIPC_COMPAT
diff --combined arch/powerpc/Kconfig
index d219ebecabf0b5139242f1b6fc870216ee4625d9,48ab0bb38924c7f6a9f484024c882143351610cf..eeaa5328b862ab0bd18cafc96e6be63c62bea891
@@@ -134,9 -134,7 +134,9 @@@ config PP
        select HAVE_HW_BREAKPOINT if PERF_EVENTS && PPC_BOOK3S_64
        select HAVE_GENERIC_HARDIRQS
        select HAVE_SPARSE_IRQ
 +      select SPARSE_IRQ
        select IRQ_PER_CPU
 +      select IRQ_DOMAIN
        select GENERIC_IRQ_SHOW
        select GENERIC_IRQ_SHOW_LEVEL
        select IRQ_FORCED_THREADING
@@@ -154,6 -152,7 +154,7 @@@ config COMPA
        bool
        default y if PPC64
        select COMPAT_BINFMT_ELF
+       select ARCH_WANT_OLD_COMPAT_IPC
  
  config SYSVIPC_COMPAT
        bool
@@@ -378,16 -377,13 +379,16 @@@ config CRASH_DUM
          The same kernel binary can be used as production kernel and dump
          capture kernel.
  
 -config PHYP_DUMP
 -      bool "Hypervisor-assisted dump (EXPERIMENTAL)"
 -      depends on PPC_PSERIES && EXPERIMENTAL
 +config FA_DUMP
 +      bool "Firmware-assisted dump"
 +      depends on PPC64 && PPC_RTAS && CRASH_DUMP
        help
 -        Hypervisor-assisted dump is meant to be a kdump replacement
 -        offering robustness and speed not possible without system
 -        hypervisor assistance.
 +        A robust mechanism to get reliable kernel crash dump with
 +        assistance from firmware. This approach does not use kexec,
 +        instead firmware assists in booting the kdump kernel
 +        while preserving memory contents. Firmware-assisted dump
 +        is meant to be a kdump replacement offering robustness and
 +        speed not possible without system firmware assistance.
  
          If unsure, say "N"
  
@@@ -616,7 -612,7 +617,7 @@@ endmen
  
  config ISA_DMA_API
        bool
 -      default !PPC_ISERIES || PCI
 +      default PCI
  
  menu "Bus options"
  
diff --combined arch/s390/Kconfig
index 465d5be1f0f4fd76ddef6fcac7fe301dd0d4c060,0ff53e350092a6371c15724bc7c2418ffd95e1d2..2b7c0fbe578e3341a8d52e98f9cfced0a82023df
@@@ -64,7 -64,6 +64,7 @@@ config ARCH_SUPPORTS_DEBUG_PAGEALLO
  config S390
        def_bool y
        select USE_GENERIC_SMP_HELPERS if SMP
 +      select GENERIC_CPU_DEVICES if !SMP
        select HAVE_SYSCALL_WRAPPERS
        select HAVE_FUNCTION_TRACER
        select HAVE_FUNCTION_TRACE_MCOUNT_TEST
@@@ -219,6 -218,7 +219,7 @@@ config COMPA
        prompt "Kernel support for 31 bit emulation"
        depends on 64BIT
        select COMPAT_BINFMT_ELF
+       select ARCH_WANT_OLD_COMPAT_IPC
        help
          Select this option if you want to enable your system kernel to
          handle system-calls from ELF binaries for 31 bit ESA.  This option
diff --combined arch/sparc/Kconfig
index 1666de84d477e6e72c00689f1011247501e42db1,64e1a8e7cab3e7698bc6aa7342c6fe497c958260..6c0683d3fcba837e26907ea03e07ecf4e32a3a3d
@@@ -29,7 -29,6 +29,7 @@@ config SPAR
        select GENERIC_IRQ_SHOW
        select USE_GENERIC_SMP_HELPERS if SMP
        select GENERIC_PCI_IOMAP
 +      select HAVE_NMI_WATCHDOG if SPARC64
  
  config SPARC32
        def_bool !64BIT
@@@ -577,6 -576,7 +577,7 @@@ config COMPA
        depends on SPARC64
        default y
        select COMPAT_BINFMT_ELF
+       select ARCH_WANT_OLD_COMPAT_IPC
  
  config SYSVIPC_COMPAT
        bool
diff --combined arch/x86/Kconfig
index 3ad653de7100014100f91705f5dfb820bf433152,cde163dc6058f85fd346bea9ffc43d80bc1bb729..e3974694078bf531001b52a859d359bec3cbf0c7
@@@ -82,7 -82,6 +82,7 @@@ config X8
        select CLKEVT_I8253
        select ARCH_HAVE_NMI_SAFE_CMPXCHG
        select GENERIC_IOMAP
 +      select DCACHE_WORD_ACCESS if !DEBUG_PAGEALLOC
  
  config INSTRUCTION_DECODER
        def_bool (KPROBES || PERF_EVENTS)
@@@ -180,9 -179,6 +180,9 @@@ config ARCH_HAS_DEFAULT_IDL
  config ARCH_HAS_CACHE_LINE_SIZE
        def_bool y
  
 +config ARCH_HAS_CPU_AUTOPROBE
 +      def_bool y
 +
  config HAVE_SETUP_PER_CPU_AREA
        def_bool y
  
@@@ -402,7 -398,6 +402,7 @@@ config X86_INTEL_C
        select X86_REBOOTFIXUPS
        select OF
        select OF_EARLY_FLATTREE
 +      select IRQ_DOMAIN
        ---help---
          Select for the Intel CE media processor (CE4100) SOC.
          This option compiles in support for the CE4100 SOC for settop
@@@ -422,6 -417,27 +422,6 @@@ if X86_WANT_INTEL_MI
  config X86_INTEL_MID
        bool
  
 -config X86_MRST
 -       bool "Moorestown MID platform"
 -      depends on PCI
 -      depends on PCI_GOANY
 -      depends on X86_IO_APIC
 -      select X86_INTEL_MID
 -      select SFI
 -      select DW_APB_TIMER
 -      select APB_TIMER
 -      select I2C
 -      select SPI
 -      select INTEL_SCU_IPC
 -      select X86_PLATFORM_DEVICES
 -      ---help---
 -        Moorestown is Intel's Low Power Intel Architecture (LPIA) based Moblin
 -        Internet Device(MID) platform. Moorestown consists of two chips:
 -        Lincroft (CPU core, graphics, and memory controller) and Langwell IOH.
 -        Unlike standard x86 PCs, Moorestown does not have many legacy devices
 -        nor standard legacy replacement devices/features. e.g. Moorestown does
 -        not contain i8259, i8254, HPET, legacy BIOS, most of the io ports.
 -
  config X86_MDFLD
         bool "Medfield MID platform"
        depends on PCI
        select SPI
        select INTEL_SCU_IPC
        select X86_PLATFORM_DEVICES
 +      select MFD_INTEL_MSIC
        ---help---
          Medfield is Intel's Low Power Intel Architecture (LPIA) based Moblin
          Internet Device(MID) platform. 
@@@ -2061,7 -2076,6 +2061,7 @@@ config OLP
        select GPIOLIB
        select OF
        select OF_PROMTREE
 +      select IRQ_DOMAIN
        ---help---
          Add support for detecting the unique features of the OLPC
          XO hardware.
@@@ -2119,19 -2133,6 +2119,19 @@@ config ALI
  
          Note: You have to set alix.force=1 for boards with Award BIOS.
  
 +config NET5501
 +      bool "Soekris Engineering net5501 System Support (LEDS, GPIO, etc)"
 +      select GPIOLIB
 +      ---help---
 +        This option enables system support for the Soekris Engineering net5501.
 +
 +config GEOS
 +      bool "Traverse Technologies GEOS System Support (LEDS, GPIO, etc)"
 +      select GPIOLIB
 +      depends on DMI
 +      ---help---
 +        This option enables system support for the Traverse Technologies GEOS.
 +
  endif # X86_32
  
  config AMD_NB
@@@ -2177,6 -2178,7 +2177,7 @@@ config IA32_AOU
  config COMPAT
        def_bool y
        depends on IA32_EMULATION
+       select ARCH_WANT_OLD_COMPAT_IPC
  
  config COMPAT_FOR_U64_ALIGNMENT
        def_bool COMPAT