6afc4baf4f
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> |
||
---|---|---|
.. | ||
pf | ||
dlb2_iface.c | ||
dlb2_iface.h | ||
dlb2_inline_fns.h | ||
dlb2_log.h | ||
dlb2_priv.h | ||
dlb2_selftest.c | ||
dlb2_user.h | ||
dlb2_xstats.c | ||
dlb2.c | ||
meson.build | ||
rte_pmd_dlb2.c | ||
rte_pmd_dlb2.h | ||
version.map |