diff options
author | Steve Passe <fsmp@FreeBSD.org> | 1997-08-30 08:08:10 +0000 |
---|---|---|
committer | Steve Passe <fsmp@FreeBSD.org> | 1997-08-30 08:08:10 +0000 |
commit | 78292efeef6fe20911f07b09e626a12e9c12b234 (patch) | |
tree | 4c99d6592ffa5600ca2d58df8fff140e2491d3dd /sys/amd64/include/profile.h | |
parent | 579f738316c91efb2e8f8e54aaba07823707c507 (diff) | |
download | src-78292efeef6fe20911f07b09e626a12e9c12b234.tar.gz src-78292efeef6fe20911f07b09e626a12e9c12b234.zip |
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>
Notes
Notes:
svn path=/head/; revision=28921
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 50da5fedee39..d4512458170c 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 */ |