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