PERFORCE change 43249 for review

Peter Wemm peter at FreeBSD.org
Mon Dec 1 13:17:28 PST 2003


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

Change 43249 by peter at peter_daintree on 2003/12/01 13:16:53

	sync with i386 (minus bogus comments in i386 version)

Affected files ...

.. //depot/projects/hammer/sys/amd64/include/critical.h#10 edit

Differences ...

==== //depot/projects/hammer/sys/amd64/include/critical.h#10 (text+ko) ====

@@ -57,10 +57,7 @@
 static __inline void
 cpu_critical_enter(void)
 {
-	struct thread *td;
-
-	td = curthread;
-	td->td_md.md_savecrit = intr_disable();
+	curthread->td_md.md_savecrit = intr_disable();
 }
 
 /*
@@ -73,10 +70,7 @@
 static __inline void
 cpu_critical_exit(void)
 {
-	struct thread *td;
-
-	td = curthread;
-	intr_restore(td->td_md.md_savecrit);
+	intr_restore(curthread->td_md.md_savecrit);
 }
 
 #else /* !__GNUC__ */


More information about the p4-projects mailing list