Date: Wed, 27 Oct 1999 11:26:16 -0600 From: Warner Losh <imp@village.org> To: Mitsuru IWASAKI <iwasaki@jp.FreeBSD.org> Cc: steveo@iol.ie, freebsd-mobile@FreeBSD.org, cvs-committers@FreeBSD.org Subject: Re: FreeBSD on a Compaq 1690 Message-ID: <199910271726.LAA66558@harmony.village.org> In-Reply-To: Your message of "Wed, 27 Oct 1999 23:26:44 %2B0900." <199910271426.XAA11152@tasogare.imasy.or.jp> References: <199910271426.XAA11152@tasogare.imasy.or.jp> <XFMail.991025135917.steveo@iol.ie>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <199910271426.XAA11152@tasogare.imasy.or.jp> Mitsuru IWASAKI writes: : OK, I'll commit them this coming weekend if nobody have objections. : Linux people also are doing also reloading the countdown register of : i8254 after suspend in the same way. It couldn't hurt, I think. : : #ifdef INIT_TIMER_AFTER_SUSPEND : save_flags(flags); : cli(); : /* set the clock to 100 Hz */ : outb_p(0x34,0x43); /* binary, mode 2, LSB/MSB, ch 0 */ : udelay(10); : outb_p(LATCH & 0xff , 0x40); /* LSB */ : udelay(10); : outb(LATCH >> 8 , 0x40); /* MSB */ : udelay(10); : restore_flags(flags); : #endif So long as this doesn't break setting HZ to something other than the default, I don't see what it can hurt. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199910271726.LAA66558>