[parisc-linux] Power Button doesn't turn machine off anymore

Ralf Hildebrandt Ralf.Hildebrandt@charite.de
Thu, 4 Jul 2002 14:22:42 +0200


Am 03.07.2002 um 16:32:27 -0400 schrieb Carlos O'Donell folgendes:

> Could you please try this out and see if you see anything in your logs :)

Applied. Rebuilding now. Will try it out when I'm back home.

> --- ./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);


-- 
Ralf Hildebrandt (Im Auftrag des Referat V A)   Ralf.Hildebrandt@charite.de
Charite Campus Virchow-Klinikum                 Tel.  +49 (0)30-450 570-155
Referat V A - Kommunikationsnetze -             Fax.  +49 (0)30-450 570-916
Why you can't find your system administrators:
The admin electroculted themselves whilst installing some cabling near the main power cable. Since the admin's body is the only thing keeping the power flowing, the management boarded up the body and pretended they still had a system administrator.