FreeBSD Bugzilla – Attachment 17237 Details for
Bug 31353
[apm] [patch] 'shutdown -p' does not work on SMP Tyan Tiger100
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.41 KB, created by
Koshin sumitani
on 2001-10-18 13:40:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Koshin sumitani
Created:
2001-10-18 13:40:01 UTC
Size:
1.41 KB
patch
obsolete
>*** apm.c.orig Thu Oct 18 00:01:05 2001 >--- apm.c Mon Oct 15 19:51:28 2001 >*************** >*** 281,299 **** > * Turn off the entire system. > */ > static void >! apm_power_off(void *junk, int howto) > { > struct apm_softc *sc = &apm_softc; > >- /* Not halting powering off, or not active */ >- if (!(howto & RB_POWEROFF) || !apm_softc.active) >- return; > sc->bios.r.eax = (APM_BIOS << 8) | APM_SETPWSTATE; > sc->bios.r.ebx = PMDV_ALLDEV; > sc->bios.r.ecx = PMST_OFF; > sc->bios.r.edx = 0; > (void) apm_bioscall(); > } > > /* APM Battery low handler */ > static void >--- 281,326 ---- > * Turn off the entire system. > */ > static void >! apm_do_power_off(void) > { > struct apm_softc *sc = &apm_softc; > > sc->bios.r.eax = (APM_BIOS << 8) | APM_SETPWSTATE; > sc->bios.r.ebx = PMDV_ALLDEV; > sc->bios.r.ecx = PMST_OFF; > sc->bios.r.edx = 0; > (void) apm_bioscall(); >+ >+ printf("power-off failed: returned from APM-BIOS\n"); >+ } >+ >+ #ifdef SMP >+ static void >+ apm_smp_power_off(void *arg) >+ { >+ if (cpuid != 0) { >+ for ( ; ; ) ; >+ } >+ apm_do_power_off(); >+ } >+ #endif >+ >+ static void >+ apm_power_off(void *junk, int howto) >+ { >+ >+ /* Not halting powering off, or not active */ >+ if (!(howto & RB_POWEROFF) || !apm_softc.active) >+ return; >+ >+ #ifdef SMP >+ smp_rendezvous( NULL, apm_smp_power_off, NULL, NULL ); >+ return; >+ #else >+ apm_do_power_off(); >+ #endif > } >+ > > /* APM Battery low handler */ > static void
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 31353
: 17237