Skip to content
  1. Oct 18, 2011
    • Peter Zijlstra's avatar
      cputimer: Cure lock inversion · bcd5cff7
      Peter Zijlstra authored
      There's a lock inversion between the cputimer->lock and rq->lock;
      notably the two callchains involved are:
      
       update_rlimit_cpu()
         sighand->siglock
         set_process_cpu_timer()
           cpu_timer_sample_group()
             thread_group_cputimer()
               cputimer->lock
               thread_group_cputime()
                 task_sched_runtime()
                   ->pi_lock
                   rq->lock
      
       scheduler_tick()
         rq->lock
         task_tick_fair()
           update_curr()
             account_group_exec()
               cputimer->lock
      
      Where the first one is enabling a CLOCK_PROCESS_CPUTIME_ID timer, and
      the second one is keeping up-to-date.
      
      This problem was introduced by e8abccb7
      
       ("posix-cpu-timers: Cure
      SMP accounting oddities").
      
      Cure the problem by removing the cputimer->lock and rq->lock nesting,
      this leaves concurrent enablers doing duplicate work, but the time
      wasted should be on the same order otherwise wasted spinning on the
      lock and the greater-than assignment filter should ensure we preserve
      monotonicity.
      
      Reported-by: default avatarDave Jones <davej@redhat.com>
      Reported-by: default avatarSimon Kirby <sim@hostway.ca>
      Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
      Cc: stable@kernel.org
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
      Link: http://lkml.kernel.org/r/1318928713.21167.4.camel@twins
      Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
      bcd5cff7
    • Linus Torvalds's avatar
      Linux 3.1-rc10 · 899e3ee4
      Linus Torvalds authored
      v3.1-rc10
      899e3ee4
  2. Oct 17, 2011
    • Linus Torvalds's avatar
      Avoid using variable-length arrays in kernel/sys.c · a84a79e4
      Linus Torvalds authored
      
      
      The size is always valid, but variable-length arrays generate worse code
      for no good reason (unless the function happens to be inlined and the
      compiler sees the length for the simple constant it is).
      
      Also, there seems to be some code generation problem on POWER, where
      Henrik Bakken reports that register r28 can get corrupted under some
      subtle circumstances (interrupt happening at the wrong time?).  That all
      indicates some seriously broken compiler issues, but since variable
      length arrays are bad regardless, there's little point in trying to
      chase it down.
      
      "Just don't do that, then".
      
      Reported-by: default avatarHenrik Grindal Bakken <henribak@cisco.com>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: stable@kernel.org
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      a84a79e4
    • Linus Torvalds's avatar
      Merge branch 'fixes' of http://ftp.arm.linux.org.uk/pub/linux/arm/kernel/git-cur/linux-2.6-arm · 8bc03e8f
      Linus Torvalds authored
      * 'fixes' of http://ftp.arm.linux.org.uk/pub/linux/arm/kernel/git-cur/linux-2.6-arm:
        ARM: 7128/1: vic: Don't write to the read-only register VIC_IRQ_STATUS
        ARM: 7122/1: localtimer: add header linux/errno.h explicitly
        ARM: 7117/1: perf: fix HW_CACHE_* events on Cortex-A9
        ARM: 7113/1: mm: Align bank start to MAX_ORDER_NR_PAGES
      8bc03e8f
  3. Oct 15, 2011
  4. Oct 14, 2011
  5. Oct 13, 2011
  6. Oct 12, 2011
  7. Oct 11, 2011
  8. Oct 10, 2011
    • Linus Torvalds's avatar
      Merge git://git.samba.org/sfrench/cifs-2.6 · 65112dcc
      Linus Torvalds authored
      * git://git.samba.org/sfrench/cifs-2.6:
        [CIFS] Fix first time message on mount, ntlmv2 upgrade delayed to 3.2
      65112dcc
    • Linus Torvalds's avatar
      Merge branch 'fixes' of git://git.linaro.org/people/arnd/arm-soc · bbf5e974
      Linus Torvalds authored
      * 'fixes' of git://git.linaro.org/people/arnd/arm-soc:
        ARM: mach-ux500: enable fix for ARM errata 754322
        ARM: OMAP: musb: Remove a redundant omap4430_phy_init call in usb_musb_init
        ARM: OMAP: Fix i2c init for twl4030
        ARM: OMAP4: MMC: fix power and audio issue, decouple USBC1 from MMC1
      bbf5e974
    • Marc Dietrich's avatar
      ARM: tegra: fix compilation error due to mach/hardware.h removal · 3faf12cd
      Marc Dietrich authored
      This fixes a compilation error in cpu-tegra.c which was introduced in
      dc8d966b
      
       ("ARM: convert PCI defines to variables") which removed the
      now obsolete mach/hardware.h from the mach-tegra subtree.
      
      Signed-off-by: default avatarMarc Dietrich <marvin24@gmx.de>
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
      Cc: Sergei Shtylyov <sshtylyov@ru.mvista.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      3faf12cd
    • Linus Torvalds's avatar
      Merge branch 'drm-fixes' of git://people.freedesktop.org/~airlied/linux · 84c86116
      Linus Torvalds authored
      * 'drm-fixes' of git://people.freedesktop.org/~airlied/linux:
        drm/radeon/kms: use hardcoded dig encoder to transmitter mapping for DCE4.1
        drm/radeon/kms: fix dp_detect handling for DP bridge chips
        drm/radeon/kms: retry aux transactions if there are status flags
      84c86116
    • Olof Johansson's avatar
      MAINTAINERS: Update tegra maintainer information · 746fb63c
      Olof Johansson authored
      
      
      A couple of changes to the Tegra maintainership setup:
      
      I'm very glad to bring on Stephen Warren on board as a maintainer. The
      work he has done so far is excellent, and the fact that he works for
      Nvidia means he has long-term interest in the platform.
      
      Erik Gilling did an astounding amount of work on getting things up and
      running but has been a silent partner on the maintainership side for a
      while, and is stepping down. Thanks for your contributions so far, Erik.
      
      Finally, update the git URL since I'll take over running the main repo
      for a while.
      
      Overall maintainership model isn't changing much at this time: We'll all
      three review patches as appropriate, and one of us will collect the main
      repo (me at this time).
      
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
      Cc: Erik Gilling <konkers@android.com>
      Acked-by: default avatarColin Cross <ccross@android.com>
      Acked-by: default avatarStephen Warren <swarren@nvidia.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      746fb63c
    • Linus Torvalds's avatar
      Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/upstream-linus · a24d025a
      Linus Torvalds authored
      * 'upstream' of git://git.linux-mips.org/pub/scm/upstream-linus: (29 commits)
        MIPS: Call oops_enter, oops_exit in die
        staging/octeon: Software should check the checksum of no tcp/udp packets
        MIPS: Octeon: Enable C0_UserLocal probing.
        MIPS: No branches in delay slots for huge pages in handle_tlbl
        MIPS: Don't clobber CP0_STATUS value for CONFIG_MIPS_MT_SMTC
        MIPS: Octeon: Select CONFIG_HOLES_IN_ZONE
        MIPS: PM: Use struct syscore_ops instead of sysdevs for PM (v2)
        MIPS: Compat: Use 32-bit wrapper for compat_sys_futex.
        MIPS: Do not use EXTRA_CFLAGS
        MIPS: Alchemy: DB1200: Disable cascade IRQ in handler
        SERIAL: Lantiq: Set timeout in uart_port
        MIPS: Lantiq: Fix setting the PCI bus speed on AR9
        MIPS: Lantiq: Fix external interrupt sources
        MIPS: tlbex: Fix build error in R3000 code.
        MIPS: Alchemy: Include Au1100 in PM code.
        MIPS: Alchemy: Fix typo in MAC0 registration
        MIPS: MSP71xx: Fix build error.
        MIPS: Handle __put_user() sleeping.
        MIPS: Allow forced irq threading
        MIPS: i8259: Mark cascade interrupt non-threaded
        ...
      a24d025a
  9. Oct 09, 2011
  10. Oct 08, 2011
  11. Oct 07, 2011