From a82e4a19e88da9bccb1fb539f66298a7e3b8cac6 Mon Sep 17 00:00:00 2001 From: Jongwoo Chae Date: Wed, 2 Dec 2015 18:07:18 +0900 Subject: Revert "linux-user: Run multi-threaded code on a single core" This reverts commit 0bcc4adb9792b7a446494b6494e13a0d109eb45a. Change-Id: I8e382f6eae453dbabb3be20df5568db31a013734 Signed-off-by: Jongwoo Chae --- linux-user/syscall.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 52885ab05..84193cedf 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -4531,15 +4531,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); -- cgit v1.2.3