From owner-freebsd-current@FreeBSD.ORG Thu Nov 18 21:12:30 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7E04516A4CE; Thu, 18 Nov 2004 21:12:30 +0000 (GMT) Received: from mailhost.schluting.com (schluting.com [131.252.214.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6136743D58; Thu, 18 Nov 2004 21:12:30 +0000 (GMT) (envelope-from charlie@schluting.com) Received: from localhost (localhost [127.0.0.1]) by mailhost.schluting.com (Postfix) with ESMTP id 04C84248A; Thu, 18 Nov 2004 13:12:30 -0800 (PST) Received: from mailhost.schluting.com ([127.0.0.1]) by localhost (schluting.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 67418-06; Thu, 18 Nov 2004 13:12:07 -0800 (PST) Received: from [131.252.209.122] (smelly.cat.pdx.edu [131.252.209.122]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mailhost.schluting.com (Postfix) with ESMTP id B3C5D243F; Thu, 18 Nov 2004 13:12:05 -0800 (PST) Message-ID: <419D1025.40309@schluting.com> Date: Thu, 18 Nov 2004 13:12:05 -0800 From: Charlie Schluting User-Agent: Mozilla Thunderbird 0.6 (X11/20040519) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-gnats-submit@FreeBSD.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by your mom at schluting.com cc: current@freebsd.org Subject: Re: i386/17800:PATCH problem with statclock initialization (NEW Patch) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Nov 2004 21:12:30 -0000 I had the same problem described in this PR with a Dell Latitude CPt. I believe its the same motherboard, or very similar. In both 5.2.1 and 6-CURRENT I couldn't get cpu usage stats. Jose's patch fixes it... though the patch is no longer valid in 6-CURRENT (from cvs 2 days ago). New patch. Same content, different location: --------------------------------------------------------------------- --- sys/i386/isa/clock.c.old Thu Nov 18 11:18:59 2004 +++ sys/i386/isa/clock.c Thu Nov 18 11:12:10 2004 @@ -946,6 +946,7 @@ /* Initialize RTC. */ writertc(RTC_STATUSA, rtc_statusa); writertc(RTC_STATUSB, RTCSB_24HR); + rtcin(RTC_INTR); /* clear any pending interrupt */ /* Don't bother enabling the statistics clock. */ if (!statclock_disable) { --------------------------------------------------------------------- Tested, and it works. Please commit :) -Charlie Schluting