From owner-freebsd-mobile Wed Oct 27 10:25:14 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 632B614F02; Wed, 27 Oct 1999 10:25:07 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id LAA40632; Wed, 27 Oct 1999 11:25:06 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id LAA66558; Wed, 27 Oct 1999 11:26:16 -0600 (MDT) Message-Id: <199910271726.LAA66558@harmony.village.org> To: Mitsuru IWASAKI Subject: Re: FreeBSD on a Compaq 1690 Cc: steveo@iol.ie, freebsd-mobile@FreeBSD.org, cvs-committers@FreeBSD.org In-reply-to: Your message of "Wed, 27 Oct 1999 23:26:44 +0900." <199910271426.XAA11152@tasogare.imasy.or.jp> References: <199910271426.XAA11152@tasogare.imasy.or.jp> Date: Wed, 27 Oct 1999 11:26:16 -0600 From: Warner Losh Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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