aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-generic/arch/default/odp/api/abi/cpu_generic.h
blob: b2ba3972aaa2b06d3b3e661ad1628acf8f40e137 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* SPDX-License-Identifier: BSD-3-Clause
 * Copyright (c) 2015-2018 Linaro Limited
 * Copyright (c) 2021 Nokia
 */

#ifndef ODP_API_ABI_CPU_GENERIC_H_
#define ODP_API_ABI_CPU_GENERIC_H_

#ifdef __cplusplus
extern "C" {
#endif

#include <stdint.h>

uint64_t _odp_cpu_cycles(void);
int _odp_cpu_cycles_init_global(void);

static inline uint64_t _odp_cpu_cycles_max(void)
{
	return UINT64_MAX;
}

static inline uint64_t _odp_cpu_cycles_resolution(void)
{
	return 1;
}

#ifdef __cplusplus
}
#endif

#endif