numam-dpdk/drivers/event/dlb2
Anatoly Burakov 6afc4baf4f eal: use callbacks for power monitoring comparison
Previously, the semantics of power monitor were such that we were
checking current value against the expected value, and if they matched,
then the sleep was aborted. This is somewhat inflexible, because it only
allowed us to check for a specific value in a specific way.

This commit replaces the comparison with a user callback mechanism, so
that any PMD (or other code) using `rte_power_monitor()` can define
their own comparison semantics and decision making on how to detect the
need to abort the entering of power optimized state.

Existing implementations are adjusted to follow the new semantics.

Suggested-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Tested-by: David Hunt <david.hunt@intel.com>
Acked-by: Timothy McDaniel <timothy.mcdaniel@intel.com>
2021-07-09 21:13:13 +02:00
..
pf event/dlb2: update config defines as runtime options 2021-05-03 11:46:31 +02:00
dlb2_iface.c event/dlb2: add eventdev stop and close 2020-11-02 09:40:22 +01:00
dlb2_iface.h event/dlb2: add eventdev stop and close 2020-11-02 09:40:22 +01:00
dlb2_inline_fns.h event/dlb2: add inline functions 2020-11-02 07:12:40 +01:00
dlb2_log.h event/dlb2: add dynamic logging 2020-11-02 06:53:04 +01:00
dlb2_priv.h event/dlb2: select scalar dequeue by default 2021-05-21 15:40:52 +02:00
dlb2_selftest.c event/dlb2: add delayed token pop logic 2020-11-12 18:40:22 +01:00
dlb2_user.h event/dlb2: add v2.5 create sched domain 2021-05-03 11:46:30 +02:00
dlb2_xstats.c event/dlb2: update xstats for v2.5 2021-05-03 11:46:31 +02:00
dlb2.c eal: use callbacks for power monitoring comparison 2021-07-09 21:13:13 +02:00
meson.build event/dlb2: use new implementation of resource file 2021-05-03 11:46:30 +02:00
rte_pmd_dlb2.c eventdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
rte_pmd_dlb2.h event/dlb2: add token pop API 2020-11-02 09:40:22 +01:00
version.map event/dlb2: add token pop API 2020-11-02 09:40:22 +01:00