From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 15 18:23:59 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 23EFB16A474; Thu, 15 Jun 2006 18:23:59 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1516243D45; Thu, 15 Jun 2006 18:23:57 +0000 (GMT) (envelope-from avg@icyb.net.ua) Received: from [212.40.38.87] (oddity-e.topspin.kiev.ua [212.40.38.87]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id VAA02552; Thu, 15 Jun 2006 21:23:54 +0300 (EEST) (envelope-from avg@icyb.net.ua) Message-ID: <4491A5BA.9060801@icyb.net.ua> Date: Thu, 15 Jun 2006 21:23:54 +0300 From: Andriy Gapon User-Agent: Thunderbird 1.5.0.2 (X11/20060512) MIME-Version: 1.0 To: John Baldwin References: <44903A53.9030007@icyb.net.ua> <200606151310.34246.jhb@freebsd.org> In-Reply-To: <200606151310.34246.jhb@freebsd.org> Content-Type: text/plain; charset=KOI8-U Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: apic detection X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 18:23:59 -0000 on 15/06/2006 20:10 John Baldwin said the following: > On Wednesday 14 June 2006 12:33, Andriy Gapon wrote: >> What is proper way to check from a driver/module if APIC is being used ? >> Or even narrower, if local APIC timer is being used ? > > There isn't currently. Why do you need to know? > There is a driver that I am working on that could change frequency of local APIC timer by changing FSB frequency and I want to make that driver smarter and refuse to attach if local APIC timer is used. I know that in 6.X and CURRENT local APIC timer is always used and in 5.X it is never used, but I want my driver to handle environment more generally. I am thinking, can I just somehow check if IRQ0 is in use ? Would it be something close to proper solution ? -- Andriy Gapon