PERFORCE change 43245 for review

Peter Wemm peter at FreeBSD.org
Mon Dec 1 12:45:47 PST 2003


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

Change 43245 by peter at peter_daintree on 2003/12/01 12:45:32

	i386 sync.  now that curthread isn't so damn toxic....

Affected files ...

.. //depot/projects/hammer/sys/amd64/amd64/critical.c#11 edit

Differences ...

==== //depot/projects/hammer/sys/amd64/amd64/critical.c#11 (text+ko) ====

@@ -30,15 +30,7 @@
 
 #include <sys/param.h>
 #include <sys/systm.h>
-#include <sys/signalvar.h>
-#include <sys/kernel.h>
-#include <sys/lock.h>
-#include <sys/mutex.h>
-#include <sys/pcpu.h>
 #include <sys/proc.h>
-#include <sys/sysctl.h>
-#include <sys/ucontext.h>
-#include <machine/clock.h>
 #include <machine/critical.h>
 
 /*
@@ -47,8 +39,6 @@
 void
 cpu_critical_fork_exit(void)
 {
-	struct thread *td;
 
-	td = curthread;
-	td->td_md.md_savecrit = read_rflags() | PSL_I;
+	curthread->td_md.md_savecrit = read_rflags() | PSL_I;
 }


More information about the p4-projects mailing list