diff options
author | John Baldwin <jhb@FreeBSD.org> | 2001-01-24 09:56:49 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2001-01-24 09:56:49 +0000 |
commit | 5b8c74d59a0876cd55972c08fdcee5f75c92615a (patch) | |
tree | 1c61cdd0acc637a97cfec0309e9b0a4fa2bf7572 /sys/i386/include/cpu.h | |
parent | 019fb3becf4f1b0674d3c2097712d400713c7987 (diff) | |
download | src-5b8c74d59a0876cd55972c08fdcee5f75c92615a.tar.gz src-5b8c74d59a0876cd55972c08fdcee5f75c92615a.zip |
- Proc locking.
- P_OWEUPC -> PS_OWEUPC.
- Remove obsolete prototype for MD fork_return().
Notes
Notes:
svn path=/head/; revision=71530
Diffstat (limited to 'sys/i386/include/cpu.h')
-rw-r--r-- | sys/i386/include/cpu.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sys/i386/include/cpu.h b/sys/i386/include/cpu.h index 87c47c5b871b..a1d47f03ca74 100644 --- a/sys/i386/include/cpu.h +++ b/sys/i386/include/cpu.h @@ -88,11 +88,15 @@ * Arrange to handle pending profiling ticks before returning to user mode. * * XXX this is now poorly named and implemented. It used to handle only a - * single tick and the P_OWEUPC flag served as a counter. Now there is a + * single tick and the PS_OWEUPC flag served as a counter. Now there is a * counter in the proc table and flag isn't really necessary. */ -#define need_proftick(p) \ - do { (p)->p_flag |= P_OWEUPC; aston(); } while (0) +#define need_proftick(p) do { \ + mtx_enter(&sched_lock, MTX_SPIN); \ + (p)->p_sflag |= PS_OWEUPC; \ + mtx_exit(&sched_lock, MTX_SPIN); \ + aston(); \ +} while (0) /* * Notify the current process (p) that it has a signal pending, @@ -133,7 +137,6 @@ extern char btext[]; extern char etext[]; void fork_trampoline __P((void)); -void fork_return __P((struct proc *, struct trapframe)); #if defined(I386_CPU) || defined(I486_CPU) extern u_int tsc_present; |