From: Carlos O'Donell <carlos@baldric.uwo.ca>
To: Ralf Hildebrandt <Ralf.Hildebrandt@charite.de>
Cc: Grant Grundler <grundler@dsl2.external.hp.com>,
parisc-linux@lists.parisc-linux.org
Subject: Re: [parisc-linux] Power Button doesn't turn machine off anymore
Date: Wed, 3 Jul 2002 16:32:27 -0400 [thread overview]
Message-ID: <20020703203227.GE9009@systemhalted> (raw)
In-Reply-To: <20020703165234.GG13244@charite.de>
[-- Attachment #1: Type: text/plain, Size: 219 bytes --]
> >
> > That's not needed for 712/715/B-class/et al.
>
> Alas, I came back home today, pressed the button. And the machine
> still ran.
>
Could you please try this out and see if you see anything in your logs :)
c.
[-- Attachment #2: power.c.diff --]
[-- Type: text/plain, Size: 949 bytes --]
--- ./arch/parisc/kernel/power.c Tue Jul 2 15:17:59 2002
+++ ./arch/parisc/kernel/power.c Wed Jul 3 16:28:47 2002
@@ -55,6 +55,7 @@
#include <asm/led.h>
#include <asm/uaccess.h>
+#define DEBUG
#ifdef DEBUG
# define DPRINTK(x) printk x
@@ -123,6 +124,8 @@
/* check, give feedback and start shutdown after one second */
static void process_shutdown(void)
{
+ DPRINTK((KERN_INFO "Processing shutodwn...\n"));
+
if (shutdown_timer == 0)
DPRINTK((KERN_INFO "Shutdown requested...\n"));
@@ -181,7 +184,12 @@
static void polling_tasklet_func(unsigned long soft_power_reg)
{
unsigned long current_status;
-
+
+#ifdef DEBUG
+ /* CAO July 3, 2002 - Prove we are using gecko tasklet */
+ BUG();
+#endif
+
if (!pwrsw_enabled)
return;
@@ -362,6 +370,8 @@
power_remove_procfs();
power_tasklet.func = NULL;
pdc_soft_power_button(0);
+
+ printk(KERN_INFO "Soft power switch disabled.\n");
}
module_init(power_init);
next prev parent reply other threads:[~2002-07-03 20:33 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-02 18:35 [parisc-linux] Power Button doesn't turn machine off anymore Ralf Hildebrandt
2002-07-02 18:51 ` Thibaut VARENE
2002-07-02 18:57 ` Ralf Hildebrandt
2002-07-02 19:06 ` Carlos O'Donell
2002-07-02 19:08 ` Ralf Hildebrandt
2002-07-02 19:21 ` Carlos O'Donell
2002-07-02 19:31 ` Ralf Hildebrandt
2002-07-03 5:24 ` Ralf Hildebrandt
2002-07-03 7:52 ` Helge Deller
2002-07-03 8:19 ` Ralf Hildebrandt
2002-07-03 12:13 ` Carlos O'Donell
2002-07-03 12:17 ` Ralf Hildebrandt
2002-07-03 12:29 ` Ralf Hildebrandt
2002-07-03 16:46 ` Grant Grundler
2002-07-03 16:52 ` Ralf Hildebrandt
2002-07-03 20:32 ` Carlos O'Donell [this message]
2002-07-04 12:22 ` Ralf Hildebrandt
2002-07-05 17:59 ` Ralf Hildebrandt
2002-07-06 8:04 ` Ralf Hildebrandt
2002-07-02 18:52 ` M. Grabert
2002-07-02 19:03 ` Joachim Steiger
2002-07-02 19:20 ` Thibaut VARENE
2002-07-06 20:54 ` Richard Hirst
2002-07-06 22:07 ` Ralf Hildebrandt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020703203227.GE9009@systemhalted \
--to=carlos@baldric.uwo.ca \
--cc=Ralf.Hildebrandt@charite.de \
--cc=grundler@dsl2.external.hp.com \
--cc=parisc-linux@lists.parisc-linux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox