* [PATCH] powerpc: Fix 1TB segment detection
@ 2007-10-12 6:44 Olof Johansson
0 siblings, 0 replies; only message in thread
From: Olof Johansson @ 2007-10-12 6:44 UTC (permalink / raw)
To: paulus; +Cc: linuxppc-dev
Buglet in the 1TB detection makes it return after checking the first
property word, even if it's not a match.
Signed-off-by: Olof Johansson <olof@lixom•net>
diff --git a/arch/powerpc/mm/hash_utils_64.c b/arch/powerpc/mm/hash_utils_64.c
index 611ad08..09da90b 100644
--- a/arch/powerpc/mm/hash_utils_64.c
+++ b/arch/powerpc/mm/hash_utils_64.c
@@ -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;
}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2007-10-12 6:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-12 6:44 [PATCH] powerpc: Fix 1TB segment detection Olof Johansson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox