mirror of https://github.com/F-Stack/f-stack.git
61 lines
1.2 KiB
C
61 lines
1.2 KiB
C
/* SPDX-License-Identifier: BSD-3-Clause
|
|
* Copyright(c) 2020 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _RTE_POWER_INTRINSIC_ARM_H_
|
|
#define _RTE_POWER_INTRINSIC_ARM_H_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <rte_common.h>
|
|
|
|
#include "generic/rte_power_intrinsics.h"
|
|
|
|
/**
|
|
* This function is not supported on ARM.
|
|
*/
|
|
static inline void
|
|
rte_power_monitor(const volatile void *p, const uint64_t expected_value,
|
|
const uint64_t value_mask, const uint64_t tsc_timestamp,
|
|
const uint8_t data_sz)
|
|
{
|
|
RTE_SET_USED(p);
|
|
RTE_SET_USED(expected_value);
|
|
RTE_SET_USED(value_mask);
|
|
RTE_SET_USED(tsc_timestamp);
|
|
RTE_SET_USED(data_sz);
|
|
}
|
|
|
|
/**
|
|
* This function is not supported on ARM.
|
|
*/
|
|
static inline void
|
|
rte_power_monitor_sync(const volatile void *p, const uint64_t expected_value,
|
|
const uint64_t value_mask, const uint64_t tsc_timestamp,
|
|
const uint8_t data_sz, rte_spinlock_t *lck)
|
|
{
|
|
RTE_SET_USED(p);
|
|
RTE_SET_USED(expected_value);
|
|
RTE_SET_USED(value_mask);
|
|
RTE_SET_USED(tsc_timestamp);
|
|
RTE_SET_USED(lck);
|
|
RTE_SET_USED(data_sz);
|
|
}
|
|
|
|
/**
|
|
* This function is not supported on ARM.
|
|
*/
|
|
static inline void
|
|
rte_power_pause(const uint64_t tsc_timestamp)
|
|
{
|
|
RTE_SET_USED(tsc_timestamp);
|
|
}
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* _RTE_POWER_INTRINSIC_ARM_H_ */
|