From owner-cvs-all Thu Oct 25 7:13:57 2001 Delivered-To: cvs-all@freebsd.org Received: from tasogare.imasy.or.jp (tasogare.imasy.or.jp [202.227.24.5]) by hub.freebsd.org (Postfix) with ESMTP id 14C3A37B406; Thu, 25 Oct 2001 07:13:54 -0700 (PDT) Received: from localhost (iwasaki.imasy.or.jp [202.227.24.92]) (authenticated as iwa with CRAM-MD5) by tasogare.imasy.or.jp (8.11.6+3.4W/8.11.6/tasogare/smtpfeed 1.14) with ESMTP/inet id f9PEDpm65225; Thu, 25 Oct 2001 23:13:51 +0900 (JST) (envelope-from iwasaki@jp.FreeBSD.org) Date: Thu, 25 Oct 2001 23:13:48 +0900 (JST) Message-Id: <20011025.231348.92585814.iwasaki@jp.FreeBSD.org> To: imp@harmony.village.org Cc: jhb@FreeBSD.org, ume@FreeBSD.org, cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org Subject: Re: cvs commit: src/sys/modules Makefile src/sys/modules/apm Mak From: Mitsuru IWASAKI In-Reply-To: <200110250505.f9P55R739324@harmony.village.org> References: <200110241653.f9OGrsL58421@freefall.freebsd.org> <200110250505.f9P55R739324@harmony.village.org> X-Mailer: Mew version 2.0 on Emacs 20.7 / Mule 4.0 (HANANOEN) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, > : > How does this work with things like the timecounter code which disables the TSC > : > timecounter in the APM case? > : > : Yes, and maybe syscons too? Anyway, I'll change releated code with > : `#ifdev DEV_APM'. > : > : # sorry, I'll be away until tonight... > > Maybe > if (apm_attached) > return; > /* do tsc */ > > and have apm_attached always in the kernel and have it set when apm is > attached. Ditto for other users. Yes like that, but it's not so easy :) Because startrtclock() is launched from cpu_startup() which is part of SI_SUB_CPU subsystem. APM is attached later stage than SI_SUB_CPU. Maybe we need to exchange priority of SI_SUB_CPU and SI_SUB_KLD at least to tell startrtclock() presence of apm(4). I'm working on this based on http://people.freebsd.org/~iwasaki/acpi/power-20010113.tar.gz few more hours to complete... Thanks To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message