Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/xen/x86 Follow convention and put entire predicate ...
details: https://anonhg.NetBSD.org/src/rev/cfc7dcb9945c
branches: trunk
changeset: 971326:cfc7dcb9945c
user: ad <ad%NetBSD.org@localhost>
date: Tue Apr 21 18:22:29 2020 +0000
description:
Follow convention and put entire predicate inside __predict_false()
diffstat:
sys/arch/xen/x86/cpu.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r d019d4054a9a -r cfc7dcb9945c sys/arch/xen/x86/cpu.c
--- a/sys/arch/xen/x86/cpu.c Tue Apr 21 17:50:19 2020 +0000
+++ b/sys/arch/xen/x86/cpu.c Tue Apr 21 18:22:29 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.c,v 1.133 2020/02/24 12:20:29 rin Exp $ */
+/* $NetBSD: cpu.c,v 1.134 2020/04/21 18:22:29 ad Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -65,7 +65,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.133 2020/02/24 12:20:29 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.134 2020/04/21 18:22:29 ad Exp $");
#include "opt_ddb.h"
#include "opt_multiprocessor.h"
@@ -1094,7 +1094,7 @@
KASSERT(ci->ci_ilevel == IPL_NONE);
x86_disable_intr();
- if (!__predict_false(ci->ci_want_resched)) {
+ if (__predict_false(!ci->ci_want_resched)) {
idle_block();
} else {
x86_enable_intr();
Home |
Main Index |
Thread Index |
Old Index