From bd2b614cddbdb963198fdd15728e067d209f3cf7 Mon Sep 17 00:00:00 2001 From: Artur Grabowski Date: Thu, 15 Mar 2007 10:22:31 +0000 Subject: 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 --- sys/arch/mvme68k/include/cpu.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch/mvme68k/include') diff --git a/sys/arch/mvme68k/include/cpu.h b/sys/arch/mvme68k/include/cpu.h index 11e0a01ed04..a7caae93d53 100644 --- a/sys/arch/mvme68k/include/cpu.h +++ b/sys/arch/mvme68k/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.25 2006/11/29 12:26:13 miod Exp $ */ +/* $OpenBSD: cpu.h,v 1.26 2007/03/15 10:22:29 art Exp $ */ /* * Copyright (c) 1995 Theo de Raadt @@ -121,7 +121,7 @@ extern int want_resched; * buffer pages are invalid. On the m68k, 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; aston(); } +#define need_proftick(p) aston() /* * Notify the current process (p) that it has a signal pending, -- cgit v1.2.3