[dpdk-dev] [PATCH v3 1/6] eal: add power management intrinsics

Stephen Hemminger stephen at networkplumber.org
Fri Sep 4 18:23:20 CEST 2020


On Fri,  4 Sep 2020 11:18:55 +0100
Liang Ma <liang.j.ma at intel.com> wrote:

> + *
> + * @return
> + *   Architecture-dependent return value.
> + */
> +static inline int rte_power_monitor(const volatile void *p,
> +		const uint64_t expected_value, const uint64_t value_mask,
> +		const uint32_t state, const uint64_t tsc_timestamp);

Since this is generic code, and you are defining the function.
You should have it return -ENOTSUPPORTED or -EINVAL.


More information about the dev mailing list