xref: /rk3399_ARM-atf/include/lib/per_cpu/per_cpu_defs.h (revision 7303319b3823e9e33748d963e9173f3678aba4da)
1*7256cf0aSRohit Mathew /*
2*7256cf0aSRohit Mathew  * Copyright (c) 2025, Arm Limited. All rights reserved.
3*7256cf0aSRohit Mathew  *
4*7256cf0aSRohit Mathew  * SPDX-License-Identifier: BSD-3-Clause
5*7256cf0aSRohit Mathew  */
6*7256cf0aSRohit Mathew 
7*7256cf0aSRohit Mathew #ifndef PER_CPU_DEFS_H
8*7256cf0aSRohit Mathew #define PER_CPU_DEFS_H
9*7256cf0aSRohit Mathew 
10*7256cf0aSRohit Mathew #include <platform_def.h>
11*7256cf0aSRohit Mathew 
12*7256cf0aSRohit Mathew /*
13*7256cf0aSRohit Mathew  * The NUMA aware per-cpu framework uses the term NODE to denote a group of CPUs
14*7256cf0aSRohit Mathew  * that have uniform proximity to a given memory node. Without NUMA awareness,
15*7256cf0aSRohit Mathew  * all CPUs on the system fall within the same NODE. With NUMA awareness, it is
16*7256cf0aSRohit Mathew  * the platforms responsibility to define how CPUs are grouped on a per NODE
17*7256cf0aSRohit Mathew  * basis.
18*7256cf0aSRohit Mathew  */
19*7256cf0aSRohit Mathew #define PER_CPU_NODE_CORE_COUNT    (PLATFORM_CORE_COUNT / PLATFORM_NODE_COUNT)
20*7256cf0aSRohit Mathew 
21*7256cf0aSRohit Mathew #endif
22