From: Sylvain Pasche <sylvain_pasche@yahoo.fr>
To: Andi Kleen <ak@suse.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.4.22 ACPI power off via sysrq not working
Date: Fri, 03 Oct 2003 20:13:39 +0200 [thread overview]
Message-ID: <1065204819.598.3.camel@localhost> (raw)
In-Reply-To: <p73u16qybig.fsf@oldwotan.suse.de>
Le ven 03/10/2003 à 10:24, Andi Kleen a écrit :
> Sylvain Pasche <sylvain_pasche@yahoo.fr> writes:
> > If I want to halt the system using sys-rq - o key, I get an oops instead
> > of a power down.
> Use this patch.
>
> diff -u linux/drivers/acpi/system.c-o linux/drivers/acpi/system.c
> --- linux/drivers/acpi/system.c-o 2003-09-07 16:20:44.000000000 +0200
> +++ linux/drivers/acpi/system.c 2003-09-08 21:04:46.000000000 +0200
> @@ -1192,11 +1192,21 @@
>
> #if defined(CONFIG_MAGIC_SYSRQ) && defined(CONFIG_PM)
>
> +static int po_cb_active;
> +
> +static void acpi_po_tramp(void *x)
> +{
> + acpi_power_off();
> +}
> +
> /* Simple wrapper calling power down function. */
> static void acpi_sysrq_power_off(int key, struct pt_regs *pt_regs,
> struct kbd_struct *kbd, struct tty_struct *tty)
> -{
> - acpi_power_off();
> +{
> + static struct tq_struct tq = { .routine = acpi_po_tramp };
> + if (po_cb_active++)
> + return;
> + schedule_task(&tq);
> }
>
> struct sysrq_key_op sysrq_acpi_poweroff_op = {
>
>
> -Andi
Yes, it works perfectly with it, thanks.
Do you forward it to the acpi maintainer ?
Cheers,
Sylvain
next prev parent reply other threads:[~2003-10-03 18:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1065168778.1740.10.camel@highscreen.suse.lists.linux.kernel>
2003-10-03 8:24 ` 2.4.22 ACPI power off via sysrq not working Andi Kleen
2003-10-03 18:13 ` Sylvain Pasche [this message]
2003-10-07 0:30 ` Marcelo Tosatti
2003-10-03 8:12 Sylvain Pasche
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=1065204819.598.3.camel@localhost \
--to=sylvain_pasche@yahoo.fr \
--cc=ak@suse.de \
--cc=linux-kernel@vger.kernel.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 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.