Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 May 1996 05:35:28 -0700 (PDT)
From:      Peter Wemm <peter>
To:        smp
Subject:   CVS update: sys/kern
Message-ID:  <199605061235.FAA09436@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

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)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199605061235.FAA09436>