All of lore.kernel.org
 help / color / mirror / Atom feed
* + leds-heartbeat-stop-on-shutdown-v5.patch added to -mm tree
@ 2012-04-26 21:39 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2012-04-26 21:39 UTC (permalink / raw)
  To: mm-commits; +Cc: holler, rpurdie, shuahkhan


The patch titled
     Subject: leds-heartbeat-stop-on-shutdown-v5
has been added to the -mm tree.  Its filename is
     leds-heartbeat-stop-on-shutdown-v5.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Alexander Holler <holler@ahsoftware.de>
Subject: leds-heartbeat-stop-on-shutdown-v5

Signed-off-by: Alexander Holler <holler@ahsoftware.de>
Cc: Shuah Khan <shuahkhan@gmail.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 drivers/leds/ledtrig-heartbeat.c |   11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff -puN drivers/leds/ledtrig-heartbeat.c~leds-heartbeat-stop-on-shutdown-v5 drivers/leds/ledtrig-heartbeat.c
--- a/drivers/leds/ledtrig-heartbeat.c~leds-heartbeat-stop-on-shutdown-v5
+++ a/drivers/leds/ledtrig-heartbeat.c
@@ -115,17 +115,26 @@ static struct notifier_block heartbeat_r
 	.notifier_call = heartbeat_reboot_notifier,
 };
 
+static struct notifier_block heartbeat_panic_nb = {
+	.notifier_call = heartbeat_reboot_notifier,
+};
+
 static int __init heartbeat_trig_init(void)
 {
 	int rc = led_trigger_register(&heartbeat_led_trigger);
-	if( ! rc )
+	if (!rc) {
+		atomic_notifier_chain_register(&panic_notifier_list,
+					       &heartbeat_panic_nb);
 		register_reboot_notifier(&heartbeat_reboot_nb);
+	}
 	return rc;
 }
 
 static void __exit heartbeat_trig_exit(void)
 {
 	unregister_reboot_notifier(&heartbeat_reboot_nb);
+	atomic_notifier_chain_unregister(&panic_notifier_list,
+					 &heartbeat_panic_nb);
 	led_trigger_unregister(&heartbeat_led_trigger);
 }
 
_
Subject: Subject: leds-heartbeat-stop-on-shutdown-v5

Patches currently in -mm which might be from holler@ahsoftware.de are

leds-heartbeat-stop-on-shutdown.patch
leds-heartbeat-stop-on-shutdown-v5.patch
leds-heartbeat-stop-on-shutdown-checkpatch-fixes.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-04-26 21:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-26 21:39 + leds-heartbeat-stop-on-shutdown-v5.patch added to -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.