summaryrefslogtreecommitdiffstats
path: root/sys/dev/sfxge
diff options
context:
space:
mode:
authorarybchik <arybchik@FreeBSD.org>2016-05-23 13:17:37 +0000
committerarybchik <arybchik@FreeBSD.org>2016-05-23 13:17:37 +0000
commit52fb088c7e2d90afcaa41ee4fd75a852ab371bca (patch)
tree02a8c9835fd96a8cb2849d90aa8edb412e086c8a /sys/dev/sfxge
parente673e1884723b2370fe4d60f139cd79b5ac66e2f (diff)
downloadFreeBSD-src-52fb088c7e2d90afcaa41ee4fd75a852ab371bca.zip
FreeBSD-src-52fb088c7e2d90afcaa41ee4fd75a852ab371bca.tar.gz
sfxge(4): cleanup: remove unused EFX preempt macros
The EFSYS_PREEMPT_DISABLE() and EFSYS_PREEMPT_ENABLE() macros were used to ensure correct timing of I2C operations. The APIs for I2C operations have been removed, so these macros have no callers. Submitted by: Andy Moreton <amoreton at solarflare.com> Sponsored by: Solarflare Communications, Inc. MFC after: 1 week
Diffstat (limited to 'sys/dev/sfxge')
-rw-r--r--sys/dev/sfxge/common/efsys.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/sys/dev/sfxge/common/efsys.h b/sys/dev/sfxge/common/efsys.h
index 21c56c9..717f415 100644
--- a/sys/dev/sfxge/common/efsys.h
+++ b/sys/dev/sfxge/common/efsys.h
@@ -1110,22 +1110,6 @@ typedef struct efsys_lock_s {
_NOTE(CONSTANTCONDITION) \
} while (B_FALSE)
-/* PREEMPT */
-
-#define EFSYS_PREEMPT_DISABLE(_state) \
- do { \
- (_state) = (_state); \
- critical_enter(); \
- _NOTE(CONSTANTCONDITION) \
- } while (B_FALSE)
-
-#define EFSYS_PREEMPT_ENABLE(_state) \
- do { \
- (_state) = (_state); \
- critical_exit(_state); \
- _NOTE(CONSTANTCONDITION) \
- } while (B_FALSE)
-
/* STAT */
typedef uint64_t efsys_stat_t;
OpenPOWER on IntegriCloud