]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[POWERPC] Fix 1TB segment detection
authorOlof Johansson <olof@lixom.net>
Fri, 12 Oct 2007 06:44:55 +0000 (16:44 +1000)
committerPaul Mackerras <paulus@samba.org>
Wed, 17 Oct 2007 12:30:08 +0000 (22:30 +1000)
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>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/mm/hash_utils_64.c

index 611ad084b7e7177bb212ae291d2152062086b9fb..09da90b5385045dac3b9348a507aea13b94120c7 100644 (file)
@@ -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;
 }