Refs #119 #118. Fixed disabling hyper threading bug.

This commit is contained in:
Xianyi Zhang 2012-06-29 15:53:24 +08:00
parent f430e54daf
commit a507b56ab1
1 changed files with 3 additions and 0 deletions

View File

@ -447,6 +447,9 @@ static void disable_hyperthread(void) {
//When the shared cpu are in different element of share & avail array, this may be a bug. //When the shared cpu are in different element of share & avail array, this may be a bug.
for (i = 0; i < count ; i++){ for (i = 0; i < count ; i++){
share[i] &= common->avail[i];
if (popcount(share[i]) > 1) { if (popcount(share[i]) > 1) {
#ifdef DEBUG #ifdef DEBUG