public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* suspicious behaviour in pcwd driver.
@ 2005-08-22 18:30 Dave Jones
  2005-08-22 20:01 ` Dave Jones
  2005-08-22 23:26 ` Benjamin Herrenschmidt
  0 siblings, 2 replies; 4+ messages in thread
From: Dave Jones @ 2005-08-22 18:30 UTC (permalink / raw)
  To: linux-kernel

drivers/char/watchdog/pcwd.c does this if it detects
a temperature out of range..

            if (temp_panic) {
                printk (KERN_INFO PFX "Temperature overheat trip!\n");
                machine_power_off();
            }

Two problems here are..

1. machine_power_off() isn't exported on ppc64. (patch below)
2. that printk will never hit the logs, so the admin will just find
a powered off box with no idea what happened.
Should we at least sync block devices before doing the power off ?

		Dave



Export machine_power_off() on ppc64, as the pcwd watchdog driver needs it.

Signed-off-by: Dave Jones <davej@redhat.com>

--- linux-2.6.12/arch/ppc64/kernel/setup.c~	2005-08-09 17:37:36.000000000 -0400
+++ linux-2.6.12/arch/ppc64/kernel/setup.c	2005-08-09 17:37:53.000000000 -0400
@@ -706,6 +706,7 @@ void machine_power_off(void)
 	local_irq_disable();
 	while (1) ;
 }
+EXPORT_SYMBOL(machine_power_off);
 
 void machine_halt(void)
 {



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-08-26 19:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-22 18:30 suspicious behaviour in pcwd driver Dave Jones
2005-08-22 20:01 ` Dave Jones
2005-08-25 12:00   ` Pavel Machek
2005-08-22 23:26 ` Benjamin Herrenschmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox