Date: Wed, 27 Oct 2004 17:08:00 GMT From: John Baldwin <jhb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 63831 for review Message-ID: <200410271708.i9RH80Wt004392@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=63831 Change 63831 by jhb@jhb_slimer on 2004/10/27 17:07:08 Allow individual CPUs on i386 to be disabled via a hint. (hint.lapic.6.disabled=1 disables CPU with local APIC ID of 6.) Affected files ... .. //depot/projects/smpng/sys/i386/i386/mp_machdep.c#70 edit Differences ... ==== //depot/projects/smpng/sys/i386/i386/mp_machdep.c#70 (text+ko) ==== @@ -635,9 +635,18 @@ /* start each AP */ for (cpu = 0, apic_id = 0; apic_id < MAXCPU; apic_id++) { + + /* Ignore non-existent CPUs and the BSP. */ if (!cpu_info[apic_id].cpu_present || cpu_info[apic_id].cpu_bsp) continue; + + /* Don't use this CPU if it has been disabled by a tunable. */ + if (resource_disabled("lapic", apic_id)) { + mp_ncpus--; + continue; + } + cpu++; /* save APIC ID for this logical ID */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200410271708.i9RH80Wt004392>