Re: [dpdk-dev] [PATCH v2 1/7] power_intrinsics: use callbacks for comparison

2021-06-28 Thread Ananyev, Konstantin
> 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. > > This commit replaces the comp

[dpdk-dev] [PATCH v2 1/7] power_intrinsics: use callbacks for comparison

2021-06-25 Thread Anatoly Burakov
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. This commit replaces the comparison with a us