Refs #119 #118. Fixed disabling hyper threading bug.
authorXianyi Zhang <xianyi@iscas.ac.cn>
Fri, 29 Jun 2012 07:53:24 +0000 (15:53 +0800)
committerXianyi Zhang <xianyi@iscas.ac.cn>
Fri, 29 Jun 2012 07:53:24 +0000 (15:53 +0800)
driver/others/init.c

index 4a6f0aae8a21823da3a28b047e7bf3df0490ee17..f6924d5f4a7eeab5a2ac646e93278daeedcf6e8f 100644 (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.
     for (i = 0; i < count ; i++){
+
+      share[i] &= common->avail[i];
+
       if (popcount(share[i]) > 1) {
       
 #ifdef DEBUG