summaryrefslogtreecommitdiff
path: root/benchmarks/libmicro/files/extra-patch-ucontext
diff options
context:
space:
mode:
Diffstat (limited to 'benchmarks/libmicro/files/extra-patch-ucontext')
-rw-r--r--benchmarks/libmicro/files/extra-patch-ucontext38
1 files changed, 38 insertions, 0 deletions
diff --git a/benchmarks/libmicro/files/extra-patch-ucontext b/benchmarks/libmicro/files/extra-patch-ucontext
new file mode 100644
index 000000000000..2b2f934f9cde
--- /dev/null
+++ b/benchmarks/libmicro/files/extra-patch-ucontext
@@ -0,0 +1,38 @@
+--- setcontext.c.orig Sat Aug 6 16:18:46 2005
++++ setcontext.c Sat Aug 6 16:19:29 2005
+@@ -57,7 +57,7 @@
+ benchmark(void *tsd, result_t *res)
+ {
+ volatile int i;
+-
++#if 0
+ ucontext_t uc;
+
+ i = 0;
+@@ -68,6 +68,7 @@
+ (void) setcontext(&uc);
+
+ res->re_count += lm_optB;
++#endif
+
+ return (0);
+ }
+--- getcontext.c.orig Sat Aug 6 16:18:39 2005
++++ getcontext.c Sat Aug 6 16:19:06 2005
+@@ -59,7 +59,7 @@
+ benchmark(void *tsd, result_t *res)
+ {
+ int i;
+-
++#if 0
+ for (i = 0; i < lm_optB; i += 10) {
+ ucontext_t uc;
+ (void) getcontext(&uc);
+@@ -74,6 +74,6 @@
+ (void) getcontext(&uc);
+ }
+ res->re_count = i;
+-
++#endif
+ return (0);
+ }