1. 14 3月, 2012 5 次提交
  2. 11 3月, 2012 8 次提交
  3. 02 3月, 2012 1 次提交
  4. 28 2月, 2012 6 次提交
  5. 27 2月, 2012 2 次提交
  6. 25 2月, 2012 3 次提交
  7. 24 2月, 2012 9 次提交
  8. 22 2月, 2012 6 次提交
    • B
      x86/mce/AMD: Fix UP build error · 3f806e50
      Borislav Petkov 提交于
      141168c3 ("x86: Simplify code by removing a !SMP #ifdefs
      from 'struct cpuinfo_x86'") removed a bunch of CONFIG_SMP ifdefs
      around code touching struct cpuinfo_x86 members but also caused
      the following build error with Randy's randconfigs:
      
      mce_amd.c:(.cpuinit.text+0x4723): undefined reference to `cpu_llc_shared_map'
      
      Restore the #ifdef in threshold_create_bank() which creates
      symlinks on the non-BSP CPUs.
      
      There's a better patch series being worked on by Kevin Winchester
      which will solve this in a cleaner fashion, but that series is
      too ambitious for v3.3 merging - so we first queue up this trivial
      fix and then do the rest for v3.4.
      Signed-off-by: NBorislav Petkov <bp@alien8.de>
      Acked-by: NKevin Winchester <kjwinchester@gmail.com>
      Cc: Randy Dunlap <rdunlap@xenotime.net>
      Cc: Nick Bowler <nbowler@elliptictech.com>
      Link: http://lkml.kernel.org/r/20120203191801.GA2846@x1.osrc.amd.comSigned-off-by: NIngo Molnar <mingo@elte.hu>
      3f806e50
    • B
      powerpc: Fix various issues with return to userspace · 18b246fa
      Benjamin Herrenschmidt 提交于
      We have a few problems when returning to userspace. This is a
      quick set of fixes for 3.3, I'll look into a more comprehensive
      rework for 3.4. This fixes:
      
       - We kept interrupts soft-disabled when schedule'ing or calling
      do_signal when returning to userspace as a result of a hardware
      interrupt.
      
       - Rename do_signal to do_notify_resume like all other archs (and
      do_signal_pending back to do_signal, which it was before Roland
      changed it).
      
       - Add the missing call to key_replace_session_keyring() to
      do_notify_resume().
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      ---
      18b246fa
    • M
      powerpc: Fix program check handling when lockdep is enabled · 922b9f86
      Michael Ellerman 提交于
      In commit 54321242 ("Disable interrupts early in Program Check"), we
      switched from enabling to disabling interrupts in program_check_common.
      
      Whereas ENABLE_INTS leaves r3 untouched, if lockdep is enabled DISABLE_INTS
      calls into lockdep code and will clobber r3. That means we pass a bogus
      struct pt_regs* into program_check_exception() and all hell breaks loose.
      
      So load our regs pointer into r3 after we call DISABLE_INTS.
      Signed-off-by: NMichael Ellerman <michael@ellerman.id.au>
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      922b9f86
    • R
      powerpc: Remove references to cpu_*_map · 07d2f1a5
      Rusty Russell 提交于
      This has been obsolescent for a while; time for the final push.
      
      In adjacent context, replaced old cpus_* with cpumask_*.
      Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      07d2f1a5
    • L
      sys_poll: fix incorrect type for 'timeout' parameter · faf30900
      Linus Torvalds 提交于
      The 'poll()' system call timeout parameter is supposed to be 'int', not
      'long'.
      
      Now, the reason this matters is that right now 32-bit compat mode is
      broken on at least x86-64, because the 32-bit code just calls
      'sys_poll()' directly on x86-64, and the 32-bit argument will have been
      zero-extended, turning a signed 'int' into a large unsigned 'long'
      value.
      
      We could just introduce a 'compat_sys_poll()' function for this, and
      that may eventually be what we have to do, but since the actual standard
      poll() semantics is *supposed* to be 'int', and since at least on x86-64
      glibc sign-extends the argument before invocing the system call (so
      nobody can actually use a 64-bit timeout value in user space _anyway_,
      even in 64-bit binaries), the simpler solution would seem to be to just
      fix the definition of the system call to match what it should have been
      from the very start.
      
      If it turns out that somebody somehow circumvents the user-level libc
      64-bit sign extension and actually uses a large unsigned 64-bit timeout
      despite that not being how poll() is supposed to work, we will need to
      do the compat_sys_poll() approach.
      Reported-by: NThomas Meyer <thomas@m3y3r.de>
      Acked-by: NEric Dumazet <eric.dumazet@gmail.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      faf30900
    • T
      ARM: OMAP1: Fix out-of-bounds array access for Innovator · 2226957e
      Tony Lindgren 提交于
      Otherwise we can get the following on some compilers:
      
      arch/arm/mach-omap1/board-innovator.c:419:19: warning:
      array subscript is above array bounds [-Warray-bounds]
      arch/arm/mach-omap1/board-innovator.c:425:19: warning:
      array subscript is above array bounds [-Warray-bounds]
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      2226957e