PERFORCE change 28507 for review

Peter Wemm peter at FreeBSD.org
Tue Apr 8 01:54:53 PDT 2003


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

Change 28507 by peter at peter_daintree on 2003/04/08 01:54:10

	cpu_switch is new-style

Affected files ...

.. //depot/projects/hammer/sys/kern/kern_synch.c#10 edit

Differences ...

==== //depot/projects/hammer/sys/kern/kern_synch.c#10 (text+ko) ====

@@ -456,7 +456,7 @@
 {
 	struct bintime new_switchtime;
 	struct thread *td;
-#if defined(__i386__) || defined(__sparc64__)
+#if defined(__i386__) || defined(__sparc64__) || defined(__x86_64__)
 	struct thread *newtd;
 #endif
 	struct proc *p;
@@ -516,7 +516,7 @@
 		thread_switchout(td);
 	sched_switchout(td);
 
-#if defined(__i386__) || defined(__sparc64__)
+#if defined(__i386__) || defined(__sparc64__) || defined(__x86_64__)
 	newtd = choosethread();
 	if (td != newtd)
 		cpu_switch(td, newtd);	/* SHAZAM!! */


More information about the p4-projects mailing list