1. 24 5月, 2011 5 次提交
  2. 23 5月, 2011 3 次提交
    • M
      watchdog: Change the default timeout and configure nmi watchdog period based on watchdog_thresh · 4eec42f3
      Mandeep Singh Baines 提交于
      Before the conversion of the NMI watchdog to perf event, the
      watchdog timeout was 5 seconds. Now it is 60 seconds. For my
      particular application, netbooks, 5 seconds was a better
      timeout. With a short timeout, we catch faults earlier and are
      able to send back a panic. With a 60 second timeout, the user is
      unlikely to wait and will instead hit the power button, causing
      us to lose the panic info.
      
      This change configures the NMI period to watchdog_thresh and
      sets the softlockup_thresh to watchdog_thresh * 2. In addition,
      watchdog_thresh was reduced to 10 seconds as suggested by Ingo
      Molnar.
      Signed-off-by: NMandeep Singh Baines <msb@chromium.org>
      Cc: Marcin Slusarz <marcin.slusarz@gmail.com>
      Cc: Don Zickus <dzickus@redhat.com>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      Link: http://lkml.kernel.org/r/1306127423-3347-4-git-send-email-msb@chromium.orgSigned-off-by: NIngo Molnar <mingo@elte.hu>
      LKML-Reference: <20110517071642.GF22305@elte.hu>
      4eec42f3
    • L
      x86: setup_smep needs to be __cpuinit · 82da65da
      Linus Torvalds 提交于
      The setup_smep function gets calle at resume time too, and is thus not a
      pure __init function.  When marked as __init, it gets thrown out after
      the kernel has initialized, and when the kernel is suspended and
      resumed, the code will no longer be around, and we'll get a nice "kernel
      tried to execute NX-protected page" oops because the page is no longer
      marked executable.
      Reported-and-tested-by: NParag Warudkar <parag.lkml@gmail.com>
      Cc: Fenghua Yu <fenghua.yu@intel.com>
      Cc: "H. Peter Anvin" <hpa@linux.intel.com>
      Cc: Ingo Molnar <mingo@elte.hu>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      82da65da
    • S
      sparc32: fix build, fix missing cpu_relax declaration · f400bdb1
      Sam Ravnborg 提交于
      Fix following sparc (32 bit) build error:
      
        CC      arch/sparc/kernel/asm-offsets.s
      In file included from include/linux/seqlock.h:29:0,
                       from include/linux/time.h:8,
                       from include/linux/timex.h:56,
                       from include/linux/sched.h:57,
                       from arch/sparc/kernel/asm-offsets.c:13:
      include/linux/spinlock.h: In function 'spin_unlock_wait':
      include/linux/spinlock.h:360:2: error: implicit declaration of function 'cpu_relax'
      
      Most likely caused by commit e66eed65 ("list: remove
      prefetching from regular list iterators") due to include
      changes.
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Cc: Stephen Rothwell <sfr@canb.auug.org.au>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f400bdb1
  3. 22 5月, 2011 32 次提交