Skip to content
Snippets Groups Projects
Commit 6423593d authored by Tomasz Grabiec's avatar Tomasz Grabiec
Browse files

mempool: make mempool_cpuid() inline


In some runs callq to mempool_cpuid shows up in 'perf kvm top' profile.

Signed-off-by: default avatarTomasz Grabiec <tgrabiec@cloudius-systems.com>
parent a85ed501
No related branches found
No related tags found
No related merge requests found
......@@ -87,7 +87,7 @@ static inline void tracker_forget(void *addr)
// sched::cpu::current() uses TLS which is set only later on.
//
static unsigned mempool_cpuid() {
static inline unsigned mempool_cpuid() {
unsigned c = (smp_allocator ? sched::cpu::current()->id: 0);
assert(c < 64);
return c;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment