diff options
author | Damjan Marion <damarion@cisco.com> | 2017-05-10 21:06:28 +0200 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2017-05-10 22:01:15 +0000 |
commit | f55f9b851f59264d737d92c6277a87588c565d24 (patch) | |
tree | 4e1c69bed3ff6b0968b9558a814a23edac4f9ae6 /src/vlibmemory/memory_vlib.c | |
parent | e5f1d27695e2e6b9be17198e9b49e95639a15c58 (diff) |
completelly deprecate os_get_cpu_number, replace new occurences
Change-Id: I82c663bc0866c6c68ba354104b0bb059387f4b9d
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vlibmemory/memory_vlib.c')
-rw-r--r-- | src/vlibmemory/memory_vlib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vlibmemory/memory_vlib.c b/src/vlibmemory/memory_vlib.c index acba8b3f89e..e5d88732c2e 100644 --- a/src/vlibmemory/memory_vlib.c +++ b/src/vlibmemory/memory_vlib.c @@ -1333,7 +1333,7 @@ vl_api_rpc_call_main_thread (void *fp, u8 * data, u32 data_length) unix_shared_memory_queue_t *q; /* Main thread: call the function directly */ - if (os_get_cpu_number () == 0) + if (vlib_get_thread_index () == 0) { vlib_main_t *vm = vlib_get_main (); void (*call_fp) (void *); |