diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2001-01-24 10:23:54 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2001-01-24 10:23:54 +0000 |
| commit | e62be0bfe732cabc4844a855627bbfee8b66885b (patch) | |
| tree | f71537bf0a7921297980588ffd6e09e63b8f83a2 /sys/alpha/include | |
| parent | a92ac5b9ae670b2222291c92dcb693025004c8d3 (diff) | |
Notes
Diffstat (limited to 'sys/alpha/include')
| -rw-r--r-- | sys/alpha/include/cpu.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/alpha/include/cpu.h b/sys/alpha/include/cpu.h index 0edb2fc304e3..cd4980262940 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, |
