summaryrefslogtreecommitdiffstats
path: root/extras/recipes-kernel/linux/linux-omap/linus/0046-watchdog-Improve-initialisation-error-message-and-do.patch
diff options
context:
space:
mode:
Diffstat (limited to 'extras/recipes-kernel/linux/linux-omap/linus/0046-watchdog-Improve-initialisation-error-message-and-do.patch')
-rw-r--r--extras/recipes-kernel/linux/linux-omap/linus/0046-watchdog-Improve-initialisation-error-message-and-do.patch58
1 files changed, 58 insertions, 0 deletions
diff --git a/extras/recipes-kernel/linux/linux-omap/linus/0046-watchdog-Improve-initialisation-error-message-and-do.patch b/extras/recipes-kernel/linux/linux-omap/linus/0046-watchdog-Improve-initialisation-error-message-and-do.patch
new file mode 100644
index 00000000..b490dc07
--- /dev/null
+++ b/extras/recipes-kernel/linux/linux-omap/linus/0046-watchdog-Improve-initialisation-error-message-and-do.patch
@@ -0,0 +1,58 @@
1From 358160309eeeb8e29b74240874267ea9f7e43d36 Mon Sep 17 00:00:00 2001
2From: Ben Hutchings <ben@decadent.org.uk>
3Date: Sun, 2 Jan 2011 23:02:42 +0000
4Subject: [PATCH 46/65] watchdog: Improve initialisation error message and documentation
5
6The error message 'NMI watchdog failed to create perf event...'
7does not make it clear that this is a fatal error for the
8watchdog. It also currently prints the error value as a
9pointer, rather than extracting the error code with PTR_ERR().
10Fix that.
11
12Add a note to the description of the 'nowatchdog' kernel
13parameter to associate it with this message.
14
15Reported-by: Cesare Leonardi <celeonar@gmail.com>
16Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
17Cc: 599368@bugs.debian.org
18Cc: 608138@bugs.debian.org
19Cc: Don Zickus <dzickus@redhat.com>
20Cc: Frederic Weisbecker <fweisbec@gmail.com>
21Cc: <stable@kernel.org> # .37.x and later
22LKML-Reference: <1294009362.3167.126.camel@localhost>
23Signed-off-by: Ingo Molnar <mingo@elte.hu>
24---
25 Documentation/kernel-parameters.txt | 2 +-
26 kernel/watchdog.c | 3 ++-
27 2 files changed, 3 insertions(+), 2 deletions(-)
28
29diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt
30index 8b61c93..01ece1b 100644
31--- a/Documentation/kernel-parameters.txt
32+++ b/Documentation/kernel-parameters.txt
33@@ -1759,7 +1759,7 @@ and is between 256 and 4096 characters. It is defined in the file
34
35 nousb [USB] Disable the USB subsystem
36
37- nowatchdog [KNL] Disable the lockup detector.
38+ nowatchdog [KNL] Disable the lockup detector (NMI watchdog).
39
40 nowb [ARM]
41
42diff --git a/kernel/watchdog.c b/kernel/watchdog.c
43index 6e3c41a..5b08215 100644
44--- a/kernel/watchdog.c
45+++ b/kernel/watchdog.c
46@@ -364,7 +364,8 @@ static int watchdog_nmi_enable(int cpu)
47 goto out_save;
48 }
49
50- printk(KERN_ERR "NMI watchdog failed to create perf event on cpu%i: %p\n", cpu, event);
51+ printk(KERN_ERR "NMI watchdog disabled for cpu%i: unable to create perf event: %ld\n",
52+ cpu, PTR_ERR(event));
53 return PTR_ERR(event);
54
55 /* success path */
56--
571.6.6.1
58