From a507b56ab1bf0a69d22f93e24df2a71e4e08c44c Mon Sep 17 00:00:00 2001 From: Xianyi Zhang Date: Fri, 29 Jun 2012 15:53:24 +0800 Subject: [PATCH] Refs #119 #118. Fixed disabling hyper threading bug. --- driver/others/init.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/driver/others/init.c b/driver/others/init.c index 4a6f0aae8..f6924d5f4 100644 --- a/driver/others/init.c +++ b/driver/others/init.c @@ -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. for (i = 0; i < count ; i++){ + + share[i] &= common->avail[i]; + if (popcount(share[i]) > 1) { #ifdef DEBUG