aboutsummaryrefslogtreecommitdiffstats
path: root/src/vppinfra/smp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vppinfra/smp.c')
-rw-r--r--src/vppinfra/smp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vppinfra/smp.c b/src/vppinfra/smp.c
index 8ac19960982..f603283ef61 100644
--- a/src/vppinfra/smp.c
+++ b/src/vppinfra/smp.c
@@ -53,7 +53,7 @@ allocate_per_cpu_mheap (uword cpu)
void *heap;
uword vm_size, stack_size, mheap_flags;
- ASSERT (os_get_cpu_number () == cpu);
+ ASSERT (os_get_thread_index () == cpu);
vm_size = (uword) 1 << m->log2_n_per_cpu_vm_bytes;
stack_size = (uword) 1 << m->log2_n_per_cpu_stack_bytes;