Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Dec 2003 13:17:26 -0800 (PST)
From:      Peter Wemm <peter@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 43249 for review
Message-ID:  <200312012117.hB1LHQ6l068157@repoman.freebsd.org>

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

Change 43249 by peter@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__ */



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