mem: fix typo in local function name
Fixes: 582bed1e1d1d ("mem: support mapping hugepages at runtime") Signed-off-by: Thomas Monjalon <thomas@monjalon.net> Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
This commit is contained in:
parent
2b1c4388dd
commit
c9d034d873
@ -143,7 +143,7 @@ prepare_numa(int *oldpolicy, struct bitmask *oldmask, int socket_id)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
resotre_numa(int *oldpolicy, struct bitmask *oldmask)
|
restore_numa(int *oldpolicy, struct bitmask *oldmask)
|
||||||
{
|
{
|
||||||
RTE_LOG(DEBUG, EAL,
|
RTE_LOG(DEBUG, EAL,
|
||||||
"Restoring previous memory policy: %d\n", *oldpolicy);
|
"Restoring previous memory policy: %d\n", *oldpolicy);
|
||||||
@ -889,7 +889,7 @@ eal_memalloc_alloc_seg_bulk(struct rte_memseg **ms, int n_segs, size_t page_sz,
|
|||||||
|
|
||||||
#ifdef RTE_EAL_NUMA_AWARE_HUGEPAGES
|
#ifdef RTE_EAL_NUMA_AWARE_HUGEPAGES
|
||||||
if (have_numa)
|
if (have_numa)
|
||||||
resotre_numa(&oldpolicy, oldmask);
|
restore_numa(&oldpolicy, oldmask);
|
||||||
#endif
|
#endif
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user