lkml.org 
[lkml]   [1997]   [Apr]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Rebooting and APM halt


On Mon, 7 Apr 1997, Tsurng-Chen Chern wrote:

>
> Oh, Well,
>
> Before a real fix is available, here is a quick fix -
>
> ...../linux/arch/i386/kernel/process.c
>
> line 377 of 627
>
> void machine_halt(void)
> {
> +#if defined(CONFIG_APM) && defined(CONFIG_APM_POWER_OFF)
> + apm_set_power_state(APM_STATE_OFF);
> +#endif
> }
>
> void machine_power_off(void)
> {
> #if defined(CONFIG_APM) && defined(CONFIG_APM_POWER_OFF)
> apm_set_power_state(APM_STATE_OFF);
> #endif
> }
>
> Sorry about not providing a real patch, I haven't figure out
> how to do that yet.
>

Use the 'diff -u' command. It'll create a unified diff that you can use
with the 'patch' command.

Derrik Pates
dpates@wind.mes.umn.edu (temporary address)


\
 
 \ /
  Last update: 2005-03-22 13:39    [from the cache]
©2003-2011 Jasper Spaans