summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhyokeun.jeon <hyokeun.jeon@samsung.com>2021-05-28 18:14:49 +0900
committerHyokeun Jeon <hyokeun.jeon@samsung.com>2021-05-29 07:02:27 +0000
commit8227831366bd85af6d642af07f61540464e17beb (patch)
treee0b36301ca9ddfcd3d3a8f566b32bd68561976c3
parent87ff5bf9e6d1852ac696a299d9508fd439ace25b (diff)
downloadqemu-tizen_6.5_base.tar.gz
qemu-tizen_6.5_base.tar.bz2
qemu-tizen_6.5_base.zip
Revert 8f8f75: "linux-user: Run multi-threaded code on a single core"tizen_6.5.m2_releasetizen_6.5_base
Approved by Tizen PL team at 2021-05-27 Change-Id: I96f1312f0dd2d1e7aca611486c8df35669e2f722
-rwxr-xr-xlinux-user/syscall.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 2a9b494b0..08ee9908b 100755
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -6015,15 +6015,6 @@ static int do_fork(CPUArchState *env, unsigned int flags, abi_ulong newsp,
if (nptl_flags & CLONE_SETTLS)
cpu_set_tls (new_env, newtls);
- /* agraf: Pin ourselves to a single CPU when running multi-threaded.
- This turned out to improve stability for me. */
- {
- cpu_set_t mask;
- CPU_ZERO(&mask);
- CPU_SET(0, &mask);
- sched_setaffinity(0, sizeof(mask), &mask);
- }
-
/* Grab a mutex so that thread setup appears atomic. */
pthread_mutex_lock(&clone_lock);