summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-benchmark/libhugetlbfs/files/0002-Mark-glibc-specific-code-so.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-benchmark/libhugetlbfs/files/0002-Mark-glibc-specific-code-so.patch')
-rw-r--r--meta-oe/recipes-benchmark/libhugetlbfs/files/0002-Mark-glibc-specific-code-so.patch39
1 files changed, 0 insertions, 39 deletions
diff --git a/meta-oe/recipes-benchmark/libhugetlbfs/files/0002-Mark-glibc-specific-code-so.patch b/meta-oe/recipes-benchmark/libhugetlbfs/files/0002-Mark-glibc-specific-code-so.patch
deleted file mode 100644
index 7ad6c43eb1..0000000000
--- a/meta-oe/recipes-benchmark/libhugetlbfs/files/0002-Mark-glibc-specific-code-so.patch
+++ /dev/null
@@ -1,39 +0,0 @@
1From 0f548286848c70aa325c6748d80e8651389b4938 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 21 Jun 2018 19:32:59 -0700
4Subject: [PATCH] Mark glibc specific code so
5
6Signed-off-by: Khem Raj <raj.khem@gmail.com>
7
8---
9Upstream-Status: Pending
10
11 morecore.c | 3 ++-
12 1 file changed, 2 insertions(+), 1 deletion(-)
13
14diff --git a/morecore.c b/morecore.c
15index 0eef782..d48509c 100644
16--- a/morecore.c
17+++ b/morecore.c
18@@ -364,6 +364,7 @@ void hugetlbfs_setup_morecore(void)
19
20 INFO("setup_morecore(): heapaddr = 0x%lx\n", heapaddr);
21
22+#ifdef __GLIBC__
23 heaptop = heapbase = (void *)heapaddr;
24 if (__hugetlb_opts.thp_morecore)
25 __morecore = &thp_morecore;
26@@ -371,7 +372,6 @@ void hugetlbfs_setup_morecore(void)
27 __morecore = &hugetlbfs_morecore;
28
29 /* Set some allocator options more appropriate for hugepages */
30-
31 if (__hugetlb_opts.shrink_ok)
32 mallopt(M_TRIM_THRESHOLD, hpage_size + hpage_size / 2);
33 else
34@@ -381,4 +381,5 @@ void hugetlbfs_setup_morecore(void)
35 * This doesn't appear to prohibit malloc() from falling back
36 * to mmap() if we run out of hugepages. */
37 mallopt(M_MMAP_MAX, 0);
38+#endif
39 }