From owner-freebsd-hackers Tue Feb 8 1:38: 2 2000 Delivered-To: freebsd-hackers@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 1E9533F11 for ; Tue, 8 Feb 2000 01:36:44 -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 KAA19175 for ; Tue, 8 Feb 2000 10:35:54 +0100 (MET) Message-ID: <389FE377.51A1972A@we.lc.ehu.es> Date: Tue, 08 Feb 2000 10:35:51 +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-hackers@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-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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-hackers" in the body of the message