mem: fix typo in local function name
authorThomas Monjalon <thomas@monjalon.net>
Tue, 1 May 2018 19:38:52 +0000 (21:38 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 13 May 2018 23:32:14 +0000 (01:32 +0200)
Fixes: 582bed1e1d1d ("mem: support mapping hugepages at runtime")

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
lib/librte_eal/linuxapp/eal/eal_memalloc.c

index 360d8f7..ace2bcf 100644 (file)
@@ -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;
 }