f-stack/dpdk/lib/librte_eal/common/arch/x86/rte_spinlock.c

16 lines
350 B
C
Raw Normal View History

2019-06-25 11:12:58 +00:00
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2010-2014 Intel Corporation
2017-04-21 10:43:26 +00:00
*/
#include <stdint.h>
#include "rte_cpuflags.h"
uint8_t rte_rtm_supported; /* cache the flag to avoid the overhead
of the rte_cpu_get_flag_enabled function */
RTE_INIT(rte_rtm_init)
2017-04-21 10:43:26 +00:00
{
rte_rtm_supported = rte_cpu_get_flag_enabled(RTE_CPUFLAG_RTM);
}