Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci/ixgbe __predict_false() should be __predict_true...
details: https://anonhg.NetBSD.org/src/rev/8a3c979ebc8b
branches: trunk
changeset: 943628:8a3c979ebc8b
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Mon Sep 07 04:15:12 2020 +0000
description:
__predict_false() should be __predict_true() for adapter->osdep.detaching
== false check.
diffstat:
sys/dev/pci/ixgbe/ixgbe.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 69b2797f4915 -r 8a3c979ebc8b sys/dev/pci/ixgbe/ixgbe.c
--- a/sys/dev/pci/ixgbe/ixgbe.c Mon Sep 07 03:57:27 2020 +0000
+++ b/sys/dev/pci/ixgbe/ixgbe.c Mon Sep 07 04:15:12 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ixgbe.c,v 1.255 2020/09/07 03:57:27 msaitoh Exp $ */
+/* $NetBSD: ixgbe.c,v 1.256 2020/09/07 04:15:12 msaitoh Exp $ */
/******************************************************************************
@@ -1538,7 +1538,7 @@
ixgbe_schedule_admin_tasklet(struct adapter *adapter)
{
- if (__predict_false(adapter->osdep.detaching == false)) {
+ if (__predict_true(adapter->osdep.detaching == false)) {
if (atomic_cas_uint(&adapter->admin_pending, 0, 1) == 0)
workqueue_enqueue(adapter->admin_wq,
&adapter->admin_wc, NULL);
@@ -4627,7 +4627,7 @@
{
struct adapter *adapter = arg;
- if (__predict_false(adapter->osdep.detaching == false)) {
+ if (__predict_true(adapter->osdep.detaching == false)) {
if (atomic_cas_uint(&adapter->recovery_mode_timer_pending,
0, 1) == 0) {
workqueue_enqueue(adapter->recovery_mode_timer_wq,
Home |
Main Index |
Thread Index |
Old Index