linux-l: Power off bei SMP-System?
Mario Thaten
mario at thaten.in-berlin.de
Mi Jan 26 22:39:25 CET 2000
Reply to mail by Alain Schroeder of Wed, 26 Jan 2000 16:51:16 +0100:
Hi Alain, danke für den Gedankenanstoß!
> Du kannst das im Kernel an'hacken'...
>
> Auszug aus linux/arch/i386/kernel/apm.c :
>
> ---
> void apm_power_off(void)
> {
> /*
> * smp_hack == 2 means that we would have enabled APM support
> * except there is more than one processor and so most of
> * the APM stuff is unsafe. We will still try power down
> * because is is useful to some people and they know what
> * they are doing because they booted with the smp-power-off
> * kernel option.
> */
Geb ich dem Kernel per append-Zeile also ein "smp-power-off=true"
mit, ja?
> if (apm_enabled || (smp_hack == 2))
> (void) apm_set_power_state(APM_STATE_OFF);
> }
> ---
>
> Weiter oben findest du (im Normalfall):
>
> static int smp_hack = 0;
Also am besten in der if-Bedingung smp_hack auf einen Wert größer 2
ändern, richtig?
> Ich habe die Diskussion nicht wirklich verfolgt, aber ich glaube das Problem,
> besteht, wenn die APM Funktion nicht auf der ersten CPU ausgef?hrt wird.
Hm, heißt das nun, ist reines Power Off nun also problematisch oder
nicht? Ich will ja keine anderen APM-Features nutzen...
Danke, Mario
--
.~. Mario Thaten
/V\ mario at thaten.de
/( )\ Linux 2.3.33
^ ^ The only law applicable in real life is Murphy's law.
Mehr Informationen über die Mailingliste linux-l