diff options
| author | Shell <[email protected]> | 2024-01-09 23:09:49 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-01-09 23:09:49 +0800 |
| commit | cc157baf23b3757b1741ca06da4bad45b5ff8ddc (patch) | |
| tree | 70f9e8e36b4d9eb988978eb0fb8ff1113add269a /src/cpu.c | |
| parent | acaa23052f2d24de5cc5c389014ed8a8513e7311 (diff) | |
[kernel] fixup of data racing accessing percpu objects (#8475)
Signed-off-by: Shell <[email protected]>
Diffstat (limited to 'src/cpu.c')
| -rw-r--r-- | src/cpu.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -136,6 +136,7 @@ RTM_EXPORT(rt_spin_unlock_irqrestore) */ struct rt_cpu *rt_cpu_self(void) { + RT_ASSERT(!rt_scheduler_is_available()); return &_cpus[rt_hw_cpu_id()]; } |
