aboutsummaryrefslogtreecommitdiffstats
path: root/lib/librte_eal/common/arch/x86/rte_spinlock.c
blob: 34890ea87c6b0e7109cfe419ce85b0da348db68c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* SPDX-License-Identifier: BSD-3-Clause
 * Copyright(c) 2010-2014 Intel Corporation
 */

#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)
{
	rte_rtm_supported = rte_cpu_get_flag_enabled(RTE_CPUFLAG_RTM);
}