diff options
author | fsmp <fsmp@FreeBSD.org> | 1997-08-30 08:08:10 +0000 |
---|---|---|
committer | fsmp <fsmp@FreeBSD.org> | 1997-08-30 08:08:10 +0000 |
commit | e2310cdbcf324f3bbeda76add82e773d37ee43cd (patch) | |
tree | ab2ac308116ca3f26a9055eae17d100d5901e501 /sys/amd64/include/profile.h | |
parent | 62dbf14e9ad4dbe9bc03c2657d854b47ef4b3f65 (diff) | |
download | FreeBSD-src-e2310cdbcf324f3bbeda76add82e773d37ee43cd.zip FreeBSD-src-e2310cdbcf324f3bbeda76add82e773d37ee43cd.tar.gz |
Another round of lock pushdown.
Add a simplelock to deal with disable_intr()/enable_intr() as used in UP kernel.
UP kernel expects that this is enough to guarantee exclusive access to
regions of code bracketed by these 2 functions.
Add a simplelock to bracket clock accesses in clock.c: clock_lock.
Help from: Bruce Evans <bde@zeta.org.au>
Diffstat (limited to 'sys/amd64/include/profile.h')
-rw-r--r-- | sys/amd64/include/profile.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/amd64/include/profile.h b/sys/amd64/include/profile.h index 50da5fe..d451245 100644 --- a/sys/amd64/include/profile.h +++ b/sys/amd64/include/profile.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)profile.h 8.1 (Berkeley) 6/11/93 - * $Id$ + * $Id: profile.h,v 1.11 1997/02/22 09:35:01 peter Exp $ */ #ifndef _MACHINE_PROFILE_H_ @@ -63,7 +63,11 @@ #else #define MCOUNT_DECL(s) u_long s; #define MCOUNT_ENTER(s) { s = read_eflags(); disable_intr(); } +#ifdef SMP +#define MCOUNT_EXIT(s) { MPINTR_UNLOCK(); write_eflags(s); } +#else #define MCOUNT_EXIT(s) (write_eflags(s)) +#endif #endif /* GUPROF */ #else /* !KERNEL */ |