Skip to contentSkip to conversation

powerpc: Fix 1TB segment detection

PATCH New Olof Johansson 1 participant 1 message Oct 12, 2007 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc: Fix 1TB segment detection

Buglet in the 1TB detection makes it return after checking the first property word, even if it's not a match.

arch/powerpc/mm/hash_utils_64.c +1 -1
index 611ad08..09da90b 100644
@@ -209,8 +209,8 @@ static int __init htab_dt_scan_seg_sizes(unsigned long node,
 		if (prop[0] == 40) {
 			DBG("1T segment support detected\n");
 			cur_cpu_spec->cpu_features |= CPU_FTR_1T_SEGMENT;
+			return 1;
 		}
-		return 1;
 	}
 	return 0;
 }