From owner-freebsd-mobile Tue Feb 15 1:51:46 2000 Delivered-To: freebsd-mobile@freebsd.org Received: from polaris.we.lc.ehu.es (polaris.we.lc.ehu.es [158.227.6.43]) by builder.freebsd.org (Postfix) with ESMTP id 3A6A64268 for ; Tue, 15 Feb 2000 01:51:19 -0800 (PST) Received: from we.lc.ehu.es (v-ger [158.227.6.179]) by polaris.we.lc.ehu.es (8.9.1/8.9.1) with ESMTP id KAA16299 for ; Tue, 15 Feb 2000 10:51:34 +0100 (MET) Message-ID: <38A921A3.2DFAC51D@we.lc.ehu.es> Date: Tue, 15 Feb 2000 10:51:31 +0100 From: "Jose M. Alcaide" Organization: Universidad del =?iso-8859-1?Q?Pa=EDs?= Vasco - Dpto. de Electricidad y =?iso-8859-1?Q?Electr=F3nica?= X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 3.4-RELEASE i386) X-Accept-Language: es-ES, es, en-US, en MIME-Version: 1.0 To: freebsd-mobile@FreeBSD.org Subject: wondering about apm_cpu_{idle,busy}() in sys/i386/apm/apm.c Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org [I posted this question to -hackers one week ago; since I did not get any answers I am trying again in -mobile :-)] Hello, I am doing some experiments with my new laptop and APM, so I carefully read the apm(4) source (sys/i386/apm/apm.c), and I found the functions apm_cpu_idle() and apm_cpu_busy(). I understand the double CPU halting issue. However, I wonder about where are these two functions invoked from: jose@v-ger[~]$ find /usr/src/sys -name "*.[chsS]" | xargs fgrep apm_cpu_idle /usr/src/sys/i386/apm/apm.c:apm_cpu_idle(void) /usr/src/sys/i386/include/apm_bios.h:void apm_cpu_idle(void); And the same happens with apm_cpu_busy(). Are these functions actually used in the kernel? What did I miss? Cheers, -- JMA ----------------------------------------------------------------------- José Mª Alcaide | mailto:jose@we.lc.ehu.es Universidad del País Vasco | mailto:jmas@FreeBSD.org Dpto. de Electricidad y Electrónica | http://www.we.lc.ehu.es/~jose Facultad de Ciencias - Campus de Lejona | Tel.: +34-946012479 48940 Lejona (Vizcaya) - SPAIN | Fax: +34-946013071 ----------------------------------------------------------------------- "Beware of Programmers who carry screwdrivers" -- Leonard Brandwein To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message