summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Zammit <damien@zamaudio.com>2024-02-11 07:09:20 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2024-02-11 11:38:09 +0100
commit64d6180904ff348ff1f719cf00a09fcf95eceff5 (patch)
tree67604062b8f681bacabaae3e32fc1b819a10459b
parent6e6aa171ff6c8a48507c32ce1fcadbd51ba96587 (diff)
smp: Fix parenthesis around logic expression value
Message-ID: <20240211070915.1879676-1-damien@zamaudio.com>
-rw-r--r--kern/thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kern/thread.c b/kern/thread.c
index 38287581..de9d1982 100644
--- a/kern/thread.c
+++ b/kern/thread.c
@@ -1921,7 +1921,7 @@ Restart:
* Reset policy and priorities if needed.
*/
#if MACH_FIXPRI
- if (thread->policy & new_pset->policies == 0) {
+ if ((thread->policy & new_pset->policies) == 0) {
thread->policy = POLICY_TIMESHARE;
recompute_pri = TRUE;
}