Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Apr 2003 18:26:56 -0800 (PST)
From:      Peter Wemm <peter@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 28133 for review
Message-ID:  <200304050226.h352Qul8094232@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=28133

Change 28133 by peter@peter_daintree on 2003/04/04 18:26:46

	Some SMP stuff snuck back in

Affected files ...

.. //depot/projects/hammer/sys/x86_64/x86_64/machdep.c#34 edit
.. //depot/projects/hammer/sys/x86_64/x86_64/support.s#7 edit
.. //depot/projects/hammer/sys/x86_64/x86_64/vm_machdep.c#12 edit

Differences ...

==== //depot/projects/hammer/sys/x86_64/x86_64/machdep.c#34 (text+ko) ====

@@ -440,11 +440,6 @@
 cpu_idle(void)
 {
 
-#ifdef SMP
-	if (mp_grab_cpu_hlt())
-		return;
-#endif
-
 	if (cpu_idle_hlt) {
 		disable_intr();
   		if (sched_runnable()) {

==== //depot/projects/hammer/sys/x86_64/x86_64/support.s#7 (text+ko) ====

@@ -376,11 +376,7 @@
 	cmpl	$VM_MAXUSER_ADDRESS-4,%edx	/* verify address is valid */
 	ja	fusufault
 
-#if defined(SMP)
-	lock cmpxchgl %ecx, (%edx)		/* Compare and set. */
-#else	/* !SMP */
 	cmpxchgl %ecx, (%edx)
-#endif	/* !SMP */
 
 	/*
 	 * The old value is in %eax.  If the store succeeded it will be the

==== //depot/projects/hammer/sys/x86_64/x86_64/vm_machdep.c#12 (text+ko) ====

@@ -57,7 +57,6 @@
 #include <sys/kernel.h>
 #include <sys/ktr.h>
 #include <sys/mutex.h>
-#include <sys/smp.h>
 #include <sys/sysctl.h>
 #include <sys/unistd.h>
 



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