diff options
author | Damjan Marion <damarion@cisco.com> | 2015-12-17 21:32:57 +0100 |
---|---|---|
committer | Damjan Marion <damarion@cisco.com> | 2015-12-17 21:32:57 +0100 |
commit | 8cf9df1de21d44667c9dca94d9692e9dce5d6057 (patch) | |
tree | 73e00875c170de18b1b8ae965366e6204a3dcdd5 | |
parent | bc20bdf2073accf423bef5bdba735c1c0ca0402c (diff) |
Remove redundant function
Change-Id: I30db8f678b14303a64ad3aaa16b5caf9081603d8
Signed-off-by: Damjan Marion <damarion@cisco.com>
-rw-r--r-- | vlib/vlib/threads.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/vlib/vlib/threads.h b/vlib/vlib/threads.h index 9ce42a1367d..07fc1d3758a 100644 --- a/vlib/vlib/threads.h +++ b/vlib/vlib/threads.h @@ -19,24 +19,6 @@ vlib_main_t **vlib_mains; -static inline uword -vlib_get_cpu_number_inline (void) -{ - void * sp; - uword n; - u32 len; - - /* Get any old stack address. */ - sp = &sp; - - n = ((uword)sp - (uword)vlib_thread_stacks[0]) >> 20; - - /* "processes" have their own stacks, and they always run in thread 0 */ - n = n >= len ? 0 : n; - - return n; -} - void vlib_set_thread_name (char *name); |