diff options
author | peter <peter@FreeBSD.org> | 2005-03-11 21:42:11 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2005-03-11 21:42:11 +0000 |
commit | 985987350f3b4dd207ac169304c767bc5f1b8f6c (patch) | |
tree | f990abe459fd14e1818dc1e8ff32a9dbc03004d3 /sys/i386/include | |
parent | 41a0201b3a06a7e41714b3d02bfd52f16c509c24 (diff) | |
download | FreeBSD-src-985987350f3b4dd207ac169304c767bc5f1b8f6c.zip FreeBSD-src-985987350f3b4dd207ac169304c767bc5f1b8f6c.tar.gz |
Remove an OBE set of comments, fix a minor whitespace nit while here.
Diffstat (limited to 'sys/i386/include')
-rw-r--r-- | sys/i386/include/critical.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/sys/i386/include/critical.h b/sys/i386/include/critical.h index 58af490..ac85f2f 100644 --- a/sys/i386/include/critical.h +++ b/sys/i386/include/critical.h @@ -53,14 +53,11 @@ void cpu_critical_fork_exit(void); * * This routine is called from critical_enter() on the 0->1 transition * of td_critnest, prior to it being incremented to 1. - * - * If new-style critical section handling we do not have to do anything. - * However, as a side effect any interrupts occuring while td_critnest - * is non-zero will be deferred. */ static __inline void cpu_critical_enter(struct thread *td) { + td->td_md.md_savecrit = intr_disable(); } @@ -70,10 +67,6 @@ cpu_critical_enter(struct thread *td) * This routine is called from critical_exit() on a 1->0 transition * of td_critnest, after it has been decremented to 0. We are * exiting the last critical section. - * - * Note that the td->critnest (1->0) transition interrupt race against - * our int_pending/unpend() check below is handled by the interrupt - * code for us, so we do not have to do anything fancy. */ static __inline void cpu_critical_exit(struct thread *td) |