Setting tag linux-2.6-32-36
[linux-2.6.git] / linux-2.6-650-hangcheck-reboot.patch
1 From 34ebe8186d08873e8f9d16233f868fae16151a61 Mon Sep 17 00:00:00 2001
2 From: S.Çağlar Onur <caglar@cs.princeton.edu>
3 Date: Tue, 7 Dec 2010 11:10:15 -0500
4 Subject: [PATCH] linux-2.6-650-hangcheck-reboot.patch
5
6 ---
7  drivers/char/hangcheck-timer.c |    6 +++---
8  1 files changed, 3 insertions(+), 3 deletions(-)
9
10 diff --git a/drivers/char/hangcheck-timer.c b/drivers/char/hangcheck-timer.c
11 index 712d9f2..054c4df 100644
12 --- a/drivers/char/hangcheck-timer.c
13 +++ b/drivers/char/hangcheck-timer.c
14 @@ -57,7 +57,7 @@
15  
16  static int hangcheck_tick = DEFAULT_IOFENCE_TICK;
17  static int hangcheck_margin = DEFAULT_IOFENCE_MARGIN;
18 -static int hangcheck_reboot;  /* Defaults to not reboot */
19 +static int hangcheck_reboot = 1;  /* Defaults to reboot */
20  static int hangcheck_dump_tasks;  /* Defaults to not dumping SysRQ T */
21  
22  /* options - modular */
23 @@ -175,8 +175,8 @@ static void hangcheck_fire(unsigned long data)
24  
25  static int __init hangcheck_init(void)
26  {
27 -       printk("Hangcheck: starting hangcheck timer %s (tick is %d seconds, margin is %d seconds).\n",
28 -              VERSION_STR, hangcheck_tick, hangcheck_margin);
29 +       printk("Hangcheck: starting hangcheck timer %s (tick is %d seconds, margin is %d seconds, reboot is %d).\n",
30 +              VERSION_STR, hangcheck_tick, hangcheck_margin, hangcheck_reboot);
31  #if defined (HAVE_MONOTONIC)
32         printk("Hangcheck: Using monotonic_clock().\n");
33  #else
34 -- 
35 1.5.4.3
36