numam-dpdk/drivers/event
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
..
cnxk event/cnxk: fix clang build on Arm 2021-06-30 15:03:20 +02:00
dlb2 eal: use callbacks for power monitoring comparison 2021-07-09 21:13:13 +02:00
dpaa log: register with standardized names 2021-05-11 15:17:55 +02:00
dpaa2 log: register with standardized names 2021-05-11 15:17:55 +02:00
dsw event/dsw: flag adapters capabilities 2021-06-30 16:20:19 +02:00
octeontx crypto/octeontx: add crypto adapter data path 2021-07-07 21:28:39 +02:00
octeontx2 crypto/octeontx: add crypto adapter data path 2021-07-07 21:28:39 +02:00
opdl log: register with standardized names 2021-05-11 15:17:55 +02:00
skeleton eventdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
sw log: register with standardized names 2021-05-11 15:17:55 +02:00
meson.build event/cnxk: add build infra and device setup 2021-05-04 05:00:18 +02:00