Give InitCpu its own mutex.
Change-Id: I4c2b48677b6d27e4b5d0deabf73597f5b89d03a5
diff --git a/src/thread_x86.cc b/src/thread_x86.cc
index 4f61e66..85da1f3 100644
--- a/src/thread_x86.cc
+++ b/src/thread_x86.cc
@@ -36,8 +36,8 @@
#if defined(__APPLE__)
UNIMPLEMENTED(WARNING);
#else
- // TODO: create specific lock for LDT modification
- ScopedThreadListLock mutex; // Avoid concurrent modification of the LDT
+ static Mutex modify_ldt_lock("modify_ldt lock");
+ MutexLock mu(modify_ldt_lock);
// Read LDT
CHECK_EQ((size_t)LDT_ENTRY_SIZE, sizeof(uint64_t));