feb6ede434
In SMP mode, up_cpu_index()/this_cpu() are the same, both return the index of the physical core. In AMP mode, up_cpu_index() will return the index of the physical core, and this_cpu() will always return 0 | #ifdef CONFIG_SMP | # define this_cpu() up_cpu_index() | #elif defined(CONFIG_AMP) | # define this_cpu() (0) | #else | # define this_cpu() (0) | #endif Signed-off-by: chao an <anchao@lixiang.com> |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
Make.defs | ||
mm_addfreechunk.c | ||
mm_brkaddr.c | ||
mm_calloc.c | ||
mm_checkcorruption.c | ||
mm_extend.c | ||
mm_foreach.c | ||
mm_free.c | ||
mm_heapmember.c | ||
mm_initialize.c | ||
mm_lock.c | ||
mm_mallinfo.c | ||
mm_malloc_size.c | ||
mm_malloc.c | ||
mm_memalign.c | ||
mm_memdump.c | ||
mm_realloc.c | ||
mm_shrinkchunk.c | ||
mm_size2ndx.c | ||
mm_zalloc.c | ||
mm.h |