if (apm_battlow || apm_suspends || apm_userstandbys) {
if (apm_suspends || apm_userstandbys ) {
apm_thread(void *v){	struct pxa2x0_apm_softc *sc = v;	u_int	type;	for (;;) {		APM_LOCK(sc);		while (1) {			if (apm_get_event(sc, &type) != 0)				break;			if (apm_handle_event(sc, type) != 0)				break;		}		if (apm_battlow || apm_suspends || apm_userstandbys) {			apm_suspend(sc);			apm_resume(sc);		}		apm_battlow = apm_suspends = apm_userstandbys = 0;		APM_UNLOCK(sc);		tsleep(&lbolt, PWAIT, "apmev", 0);	}}