diff options
author | jhb <jhb@FreeBSD.org> | 2001-01-24 10:38:58 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2001-01-24 10:38:58 +0000 |
commit | 8dae9bbc6ab51ea710ec824820257caf79787657 (patch) | |
tree | 2a8da64082fe05c582c671556881290fe6e86b4f /sys | |
parent | af41b60632b2e4d5bdc36b653d59c70a3852c5db (diff) | |
download | FreeBSD-src-8dae9bbc6ab51ea710ec824820257caf79787657.zip FreeBSD-src-8dae9bbc6ab51ea710ec824820257caf79787657.tar.gz |
- Proc locking.
- P_OWEUPC -> PS_OWEUPC.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/ia64/include/cpu.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/ia64/include/cpu.h b/sys/ia64/include/cpu.h index ff36f05..8a883bf 100644 --- a/sys/ia64/include/cpu.h +++ b/sys/ia64/include/cpu.h @@ -82,8 +82,12 @@ struct clockframe { * buffer pages are invalid. On the hp300, request an ast to send us * through trap, marking the proc as needing a profiling tick. */ -#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; \ + aston(); \ + mtx_exit(&sched_lock, MTX_SPIN); \ +} while (0) /* * Notify the current process (p) that it has a signal pending, |