mem: fix typo in local function name
PATCH 1/1 mem: fix typo in local function name
Fixes 582bed1e1d1d ("mem: support mapping hugepages at runtime")
Signed-off-by Thomas Monjalon <[email protected]>
--- lib/librte_eal/linuxapp/eal/eal_memalloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
lib/librte_eal/linuxapp/eal/eal_memalloc.c +2 -2
@@ -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; }
Signature · 1 line
2.16.2
Quoted 22 lines · Thomas Monjalon
Fixes 582bed1e1d1d ("mem: support mapping hugepages at runtime")Signed-off-by Thomas Monjalon <[email protected]>--- lib/librte_eal/linuxapp/eal/eal_memalloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)lib/librte_eal/linuxapp/eal/eal_memalloc.c +1
-1@@ -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);
lib/librte_eal/linuxapp/eal/eal_memalloc.c eal_memalloc_alloc_seg_bulk(struct rte_memseg **ms, int n_segs, size_t page_sz, · line 895
Quoted 8 lines
lib/librte_eal/linuxapp/eal/eal_memalloc.c +1
-1@@ -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; }
Acked-by Anatoly Burakov <[email protected]>
(tempted to say "Akced"...)
Signature · 2 lines
Thanks, Anatoly
02/05/2018 11:28, Burakov, Anatoly:
Quoted 25 lines · Thomas Monjalon
Quoted 13 lines
lib/librte_eal/linuxapp/eal/eal_memalloc.c +1
-1@@ -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);lib/librte_eal/linuxapp/eal/eal_memalloc.c eal_memalloc_alloc_seg_bulk(struct rte_memseg **ms, int n_segs, size_t page_sz, · line 895
Quoted 8 lines
lib/librte_eal/linuxapp/eal/eal_memalloc.c +1
-1@@ -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; }Acked-by Anatoly Burakov <[email protected]>
Quoted 1 line
(tempted to say "Akced"...)
Thnak you :)
Thomas Monjalon
Applied02/05/2018 11:28, Burakov, Anatoly:
Quoted 6 lines · Thomas Monjalon
Quoted 3 lines
Fixes 582bed1e1d1d ("mem: support mapping hugepages at runtime")Signed-off-by Thomas Monjalon <[email protected]>Acked-by Anatoly Burakov <[email protected]>
Applied