From c9d034d873ce6de9681eac3586428f24ab196bc4 Mon Sep 17 00:00:00 2001 From: Thomas Monjalon Date: Tue, 1 May 2018 21:38:52 +0200 Subject: [PATCH] mem: fix typo in local function name Fixes: 582bed1e1d1d ("mem: support mapping hugepages at runtime") Signed-off-by: Thomas Monjalon Acked-by: Anatoly Burakov --- lib/librte_eal/linuxapp/eal/eal_memalloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.20.1