Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern future-proof-ness
details: https://anonhg.NetBSD.org/src/rev/e1583c85086b
branches: trunk
changeset: 933176:e1583c85086b
user: maxv <maxv%NetBSD.org@localhost>
date: Wed May 20 20:59:31 2020 +0000
description:
future-proof-ness
diffstat:
sys/kern/kern_synch.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 0e9a00b62344 -r e1583c85086b sys/kern/kern_synch.c
--- a/sys/kern/kern_synch.c Wed May 20 20:47:18 2020 +0000
+++ b/sys/kern/kern_synch.c Wed May 20 20:59:31 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_synch.c,v 1.347 2020/04/19 20:35:29 ad Exp $ */
+/* $NetBSD: kern_synch.c,v 1.348 2020/05/20 20:59:31 maxv Exp $ */
/*-
* Copyright (c) 1999, 2000, 2004, 2006, 2007, 2008, 2009, 2019, 2020
@@ -69,7 +69,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_synch.c,v 1.347 2020/04/19 20:35:29 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_synch.c,v 1.348 2020/05/20 20:59:31 maxv Exp $");
#include "opt_kstack.h"
#include "opt_dtrace.h"
@@ -334,7 +334,7 @@
needed = l->l_cpu->ci_want_resched;
KPREEMPT_ENABLE(l);
- return (bool)needed;
+ return (needed != 0);
}
/*
Home |
Main Index |
Thread Index |
Old Index