From: Thomas Monjalon Date: Tue, 1 May 2018 19:38:52 +0000 (+0200) Subject: mem: fix typo in local function name X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=c9d034d873ce6de9681eac3586428f24ab196bc4;p=dpdk.git mem: fix typo in local function name Fixes: 582bed1e1d1d ("mem: support mapping hugepages at runtime") Signed-off-by: Thomas Monjalon Acked-by: Anatoly Burakov --- diff --git a/lib/librte_eal/linuxapp/eal/eal_memalloc.c b/lib/librte_eal/linuxapp/eal/eal_memalloc.c index 360d8f73c6..ace2bcf3e9 100644 --- a/lib/librte_eal/linuxapp/eal/eal_memalloc.c +++ b/lib/librte_eal/linuxapp/eal/eal_memalloc.c @@ -143,7 +143,7 @@ prepare_numa(int *oldpolicy, struct bitmask *oldmask, int socket_id) } static void -resotre_numa(int *oldpolicy, struct bitmask *oldmask) +restore_numa(int *oldpolicy, struct bitmask *oldmask) { RTE_LOG(DEBUG, EAL, "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 if (have_numa) - resotre_numa(&oldpolicy, oldmask); + restore_numa(&oldpolicy, oldmask); #endif return ret; }