numam-dpdk/drivers
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
..
baseband log: register with standardized names 2021-05-11 15:17:55 +02:00
bus bus/pci: fix leak for unbound devices 2021-07-06 11:27:55 +02:00
common net/sfc: fix aarch32 build 2021-07-09 19:58:20 +02:00
compress log: register with standardized names 2021-05-11 15:17:55 +02:00
crypto crypto/cnxk: fix build with asserts 2021-07-09 13:18:56 +02:00
event eal: use callbacks for power monitoring comparison 2021-07-09 21:13:13 +02:00
mempool mempool/octeontx2: fix shift calculation 2021-06-30 18:42:54 +02:00
net eal: use callbacks for power monitoring comparison 2021-07-09 21:13:13 +02:00
raw raw/cnxk_bphy: support BPHY self test 2021-07-05 23:08:48 +02:00
regex log: register with standardized names 2021-05-11 15:17:55 +02:00
vdpa vdpa/mlx5: fix TSO offload without checksum 2021-06-30 13:39:23 +02:00
meson.build log: register with standardized names 2021-05-11 15:17:55 +02:00