PERFORCE change 28133 for review

Peter Wemm peter at FreeBSD.org
Fri Apr 4 18:26:59 PST 2003


http://perforce.freebsd.org/chv.cgi?CH=28133

Change 28133 by peter at 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>
 


More information about the p4-projects mailing list