incubator-nuttx/mm/mm_heap
chao an feb6ede434 sched/cpu: replace up_cpu_index() to this_cpu()
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>
2024-03-21 18:52:35 +08:00
..
CMakeLists.txt cmake:complete missing changes during cmake reforming for mm 2023-09-08 21:20:16 +03:00
Make.defs Replace nxsem API when used as a lock with nxmutex API 2022-10-17 15:59:46 +09:00
mm.h mm_heap/mm.h: revising comments 2024-03-12 19:44:48 +08:00
mm_addfreechunk.c mm: add macro to judge if node/prenode is free 2023-09-12 22:09:36 +08:00
mm_brkaddr.c mm: use unified naming style for macros 2023-09-12 22:09:36 +08:00
mm_calloc.c mm: memory allocations return valid pointer when request 0 size 2023-05-02 18:29:29 -06:00
mm_checkcorruption.c mm: add macro to judge if node/prenode is free 2023-09-12 22:09:36 +08:00
mm_extend.c mm: add macro to judge if node/prenode is free 2023-09-12 22:09:36 +08:00
mm_foreach.c Revert "fix variable set but not used" 2024-02-21 21:29:48 -08:00
mm_free.c sched/cpu: replace up_cpu_index() to this_cpu() 2024-03-21 18:52:35 +08:00
mm_heapmember.c mm: Remove mm_heap_impl_s struct 2021-07-07 04:25:15 -07:00
mm_initialize.c mm: Using Macros Instead of Memory to Fill Labels 2024-03-14 22:48:19 +08:00
mm_lock.c mm_lock.c: reformat preprocessor format 2023-06-24 10:54:19 -03:00
mm_mallinfo.c Revert "fix variable set but not used" 2024-02-21 21:29:48 -08:00
mm_malloc.c sched/cpu: replace up_cpu_index() to this_cpu() 2024-03-21 18:52:35 +08:00
mm_malloc_size.c mm: add macro to judge if node/prenode is free 2023-09-12 22:09:36 +08:00
mm_memalign.c mm: record the maximum system memory usage 2023-11-09 09:08:49 +08:00
mm_memdump.c Revert "fix variable set but not used" 2024-02-21 21:29:48 -08:00
mm_realloc.c mm: record the maximum system memory usage 2023-11-09 09:08:49 +08:00
mm_shrinkchunk.c mm: add macro to judge if node/prenode is free 2023-09-12 22:09:36 +08:00
mm_size2ndx.c mm: support custom the mm alignment and default to be 8 2023-03-06 11:10:36 +08:00
mm_zalloc.c mm: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00