Merge tag 'ntb-5.11' of git://github.com/jonmason/ntb
[linux/fpc-iii.git] / tools / lib / perf / include / internal / cpumap.h
blob840d4032587b59bf0640debbd9ca81349a84ca31
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __LIBPERF_INTERNAL_CPUMAP_H
3 #define __LIBPERF_INTERNAL_CPUMAP_H
5 #include <linux/refcount.h>
7 struct perf_cpu_map {
8 refcount_t refcnt;
9 int nr;
10 int map[];
13 #ifndef MAX_NR_CPUS
14 #define MAX_NR_CPUS 2048
15 #endif
17 int perf_cpu_map__idx(struct perf_cpu_map *cpus, int cpu);
19 #endif /* __LIBPERF_INTERNAL_CPUMAP_H */