Code Review
/
kvmfornfv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
These changes are the raw update to linux-4.4.6-rt14. Kernel sources
[kvmfornfv.git]
/
kernel
/
tools
/
perf
/
bench
/
futex-wake.c
diff --git
a/kernel/tools/perf/bench/futex-wake.c
b/kernel/tools/perf/bench/futex-wake.c
index
929f762
..
e5e41d3
100644
(file)
--- a/
kernel/tools/perf/bench/futex-wake.c
+++ b/
kernel/tools/perf/bench/futex-wake.c
@@
-60,7
+60,12
@@
static void *workerfn(void *arg __maybe_unused)
pthread_cond_wait(&thread_worker, &thread_lock);
pthread_mutex_unlock(&thread_lock);
pthread_cond_wait(&thread_worker, &thread_lock);
pthread_mutex_unlock(&thread_lock);
- futex_wait(&futex1, 0, NULL, futex_flag);
+ while (1) {
+ if (futex_wait(&futex1, 0, NULL, futex_flag) != EINTR)
+ break;
+ }
+
+ pthread_exit(NULL);
return NULL;
}
return NULL;
}