diff options
| author | 2007-03-15 10:22:29 +0000 | |
|---|---|---|
| committer | 2007-03-15 10:22:29 +0000 | |
| commit | 29514732ed7d204db854b589692b0fd90dc452d0 (patch) | |
| tree | 5e8143a1e45a8ca7a90bc7199927c179bed99d96 /sys/arch/sparc/include | |
| parent | regen (diff) | |
| download | wireguard-openbsd-29514732ed7d204db854b589692b0fd90dc452d0.tar.xz wireguard-openbsd-29514732ed7d204db854b589692b0fd90dc452d0.zip | |
Since p_flag is often manipulated in interrupts and without biglock
it's a good idea to use atomic.h operations on it. This mechanic
change updates all bit operations on p_flag to atomic_{set,clear}bits_int.
Only exception is that P_OWEUPC is set by MI code before calling
need_proftick and it's automatically cleared by ADDUPC. There's
no reason for MD handling of that flag since everyone handles it the
same way.
kettenis@ ok
Diffstat (limited to 'sys/arch/sparc/include')
| -rw-r--r-- | sys/arch/sparc/include/cpu.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sparc/include/cpu.h b/sys/arch/sparc/include/cpu.h index 6cab3d88eab..c866f1d4803 100644 --- a/sys/arch/sparc/include/cpu.h +++ b/sys/arch/sparc/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.27 2006/12/24 20:30:35 miod Exp $ */ +/* $OpenBSD: cpu.h,v 1.28 2007/03/15 10:22:29 art Exp $ */ /* $NetBSD: cpu.h,v 1.24 1997/03/15 22:25:15 pk Exp $ */ /* @@ -141,7 +141,7 @@ extern int want_ast; * buffer pages are invalid. On the sparc, request an ast to send us * through trap(), marking the proc as needing a profiling tick. */ -#define need_proftick(p) ((p)->p_flag |= P_OWEUPC, want_ast = 1) +#define need_proftick(p) do { want_ast = 1; } while (0) /* * Notify the current process (p) that it has a signal pending, |
