summaryrefslogtreecommitdiffstats
path: root/sys/alpha/include
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-01-24 10:23:54 +0000
committerjhb <jhb@FreeBSD.org>2001-01-24 10:23:54 +0000
commit77583447a9e7fa38ca9ded43c5e1a8e8583bf05f (patch)
treef313b7c8b2166b11f2255d3bf1c57421f3cfd72e /sys/alpha/include
parenteabcf31b8251acb54cbdb10cb2c2a58283abad84 (diff)
downloadFreeBSD-src-77583447a9e7fa38ca9ded43c5e1a8e8583bf05f.zip
FreeBSD-src-77583447a9e7fa38ca9ded43c5e1a8e8583bf05f.tar.gz
- Proc locking.
- P_OWEUPC -> PS_OWEUPC.
Diffstat (limited to 'sys/alpha/include')
-rw-r--r--sys/alpha/include/cpu.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/alpha/include/cpu.h b/sys/alpha/include/cpu.h
index 0edb2fc..cd49802 100644
--- a/sys/alpha/include/cpu.h
+++ b/sys/alpha/include/cpu.h
@@ -80,8 +80,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; \
+ mtx_exit(&sched_lock, MTX_SPIN); \
+ aston(); \
+} while (0)
/*
* Notify the current process (p) that it has a signal pending,
OpenPOWER on IntegriCloud