Branch data Line data Source code
1 : : /* SPDX-License-Identifier: BSD-3-Clause 2 : : * Copyright(c) 2010-2014 Intel Corporation 3 : : */ 4 : : 5 : : #include <stdint.h> 6 : : 7 : : #include <eal_export.h> 8 : : #include "rte_cpuflags.h" 9 : : 10 : : RTE_EXPORT_SYMBOL(rte_rtm_supported) 11 : : uint8_t rte_rtm_supported; /* cache the flag to avoid the overhead 12 : : of the rte_cpu_get_flag_enabled function */ 13 : : 14 : 252 : RTE_INIT(rte_rtm_init) 15 : : { 16 : 252 : rte_rtm_supported = rte_cpu_get_flag_enabled(RTE_CPUFLAG_RTM); 17 : 252 : }