From owner-freebsd-hackers Mon Feb 12 7: 2:56 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from polaris.we.lc.ehu.es (polaris.we.lc.ehu.es [158.227.6.43]) by hub.freebsd.org (Postfix) with ESMTP id 9C2A437B401 for ; Mon, 12 Feb 2001 07:02:50 -0800 (PST) Received: from v-ger.we.lc.ehu.es (v-ger [158.227.6.179]) by polaris.we.lc.ehu.es (8.11.1/8.11.1) with ESMTP id f1CF2ib08657 for ; Mon, 12 Feb 2001 16:02:44 +0100 (MET) Received: from we.lc.ehu.es (localhost [127.0.0.1]) by v-ger.we.lc.ehu.es (8.11.1/8.11.1) with ESMTP id f1CEvuZ03493 for ; Mon, 12 Feb 2001 15:57:56 +0100 (CET) (envelope-from jose@we.lc.ehu.es) Message-ID: <3A87F9F3.459E942B@we.lc.ehu.es> Date: Mon, 12 Feb 2001 15:57:55 +0100 From: "Jose M. Alcaide" Organization: Universidad del Pais Vasco - Dpto. de Electricidad y Electronica X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: es-ES, es, en-US, en MIME-Version: 1.0 To: hackers@FreeBSD.org Subject: apm_cpu_idle() is not being used... why? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello, The discussion originated a few days ago in -mobile about some problems with the Dell Inspiron fan reminded me of an old question about APM and idle cycles: why is apm_cpu_idle() not used at all in the kernel? I have just checked NetBSD and OpenBSD's sys/arch/i386/i386/locore.s and both cousins have calls to apm_cpu_idle() and apm_cpu_busy(). Could this be related to SMP support or something? I revised the CVS history of our locore.s and, although some time ago it did the APM initialization, I didn't find any references to apm_cpu_{idle,busy}(). This is a matter of curiosity, so any explanation will be very welcome :-) Cheers, -- JMA ****** Jose M. Alcaide // jose@we.lc.ehu.es // jmas@FreeBSD.org ****** ** "Beware of Programmers who carry screwdrivers" -- Leonard Brandwein ** To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message