From owner-freebsd-smp Mon May 6 05:35:29 1996 Return-Path: owner-smp Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id FAA09444 for smp-outgoing; Mon, 6 May 1996 05:35:29 -0700 (PDT) Received: (from peter@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id FAA09436 for smp; Mon, 6 May 1996 05:35:28 -0700 (PDT) Date: Mon, 6 May 1996 05:35:28 -0700 (PDT) From: Peter Wemm Message-Id: <199605061235.FAA09436@freefall.freebsd.org> To: smp Subject: CVS update: sys/kern Sender: owner-smp@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Date: Monday May 6, 1996 @ 5:35 Author: peter Update of /home/smp/sys/kern In directory freefall.freebsd.org:/tmp/cvs-serv9334 Modified Files: init_main.c Log Message: Use a more optimal smp_idleloop(). This routine is a dead-end once the real idle loop is reactivated, and this whole SMP mess in init_main.c can die. In particular, mimic the spl characteristics of _idle, make sure gcc doesn't optimise out the reads of the which*qs variables, dont grab and release the mplock on each spin, that just clogs up the MESI cache line with both cpu's fighting over reads and writes. It spins on a read now, so the cache line can sit in "S" state (shared). =================================================================== File: init_main.c Status: Up-to-date Working revision: 1.12 Mon May 6 12:35:26 1996 Repository revision: 1.12 /home/smp/sys/kern/init_main.c,v Sticky Options: -ko Existing Tags: v960506 (revision: 1.1.1.1) v960421 (revision: 1.1.1.1) v960414 (revision: 1.1.1.1) v960406 (revision: 1.1.1.1) v960403 (revision: 1.1.1.1) CURRENT (branch: 1.1.1) current270396 (revision: 1.1.1.1) FBSD (branch: 1.1.1)