Module Name: src Committed By: msaitoh Date: Mon Sep 7 04:15:12 UTC 2020
Modified Files: src/sys/dev/pci/ixgbe: ixgbe.c Log Message: __predict_false() should be __predict_true() for adapter->osdep.detaching == false check. To generate a diff of this commit: cvs rdiff -u -r1.255 -r1.256 src/sys/dev/pci/ixgbe/ixgbe.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/pci/ixgbe/ixgbe.c diff -u src/sys/dev/pci/ixgbe/ixgbe.c:1.255 src/sys/dev/pci/ixgbe/ixgbe.c:1.256 --- src/sys/dev/pci/ixgbe/ixgbe.c:1.255 Mon Sep 7 03:57:27 2020 +++ src/sys/dev/pci/ixgbe/ixgbe.c Mon Sep 7 04:15:12 2020 @@ -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 @@ static void 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 @@ ixgbe_recovery_mode_timer(void *arg) { 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,