iflib.c: Deactivate use of ifc_cpus

- cpusets and SMP are currently not supported in libbsd for RTEMS
- Disable the ifc_cpus context variable and replace its usage,
essentially hard-coding for cpu 0
This commit is contained in:
Jan Sommer
2020-08-14 21:57:52 +02:00
committed by Chris Johns
parent 5cfbb629b6
commit 514ffab353
2 changed files with 28 additions and 0 deletions

View File

@@ -1837,8 +1837,14 @@ em_if_update_admin_status(if_ctx_t ctx)
if (adapter->hw.mac.type < em_mac_min)
lem_smartspeed(adapter);
#ifdef __rtems__
else if (hw->mac.type == e1000_82574 &&
adapter->intr_type == IFLIB_INTR_MSIX)
E1000_WRITE_REG(&adapter->hw, E1000_IMS, EM_MSIX_LINK | E1000_IMS_LSC);
#else /* __rtems__ */
E1000_WRITE_REG(&adapter->hw, E1000_IMS, EM_MSIX_LINK | E1000_IMS_LSC);
#endif /* __rtems__ */
}
static void