X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=linux-2.6-650-hangcheck-reboot.patch;fp=linux-2.6-650-hangcheck-reboot.patch;h=a44af4f380cef73d440159391f395e24320275d2;hb=7d6b6a4ebfbabee2c2357340aae01c8545e011c8;hp=0000000000000000000000000000000000000000;hpb=adfa160d9c6dae133833603812b8623703576aa6;p=linux-2.6.git diff --git a/linux-2.6-650-hangcheck-reboot.patch b/linux-2.6-650-hangcheck-reboot.patch new file mode 100644 index 000000000..a44af4f38 --- /dev/null +++ b/linux-2.6-650-hangcheck-reboot.patch @@ -0,0 +1,24 @@ +diff --git a/drivers/char/hangcheck-timer.c b/drivers/char/hangcheck-timer.c +index 712d9f2..054c4df 100644 +--- a/drivers/char/hangcheck-timer.c ++++ b/drivers/char/hangcheck-timer.c +@@ -57,7 +57,7 @@ + + static int hangcheck_tick = DEFAULT_IOFENCE_TICK; + static int hangcheck_margin = DEFAULT_IOFENCE_MARGIN; +-static int hangcheck_reboot; /* Defaults to not reboot */ ++static int hangcheck_reboot = 1; /* Defaults to reboot */ + static int hangcheck_dump_tasks; /* Defaults to not dumping SysRQ T */ + + /* options - modular */ +@@ -175,8 +175,8 @@ static void hangcheck_fire(unsigned long data) + + static int __init hangcheck_init(void) + { +- printk("Hangcheck: starting hangcheck timer %s (tick is %d seconds, margin is %d seconds).\n", +- VERSION_STR, hangcheck_tick, hangcheck_margin); ++ printk("Hangcheck: starting hangcheck timer %s (tick is %d seconds, margin is %d seconds, reboot is %d).\n", ++ VERSION_STR, hangcheck_tick, hangcheck_margin, hangcheck_reboot); + #if defined (HAVE_MONOTONIC) + printk("Hangcheck: Using monotonic_clock().\n"); + #else