Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=f5534004e5296496aa559d65c91befd02bf91d05
Commit:     f5534004e5296496aa559d65c91befd02bf91d05
Parent:     dc6adfb33faf3ca517bf882d859e15b005460961
Author:     Olof Johansson <[EMAIL PROTECTED]>
AuthorDate: Fri Oct 12 16:44:55 2007 +1000
Committer:  Paul Mackerras <[EMAIL PROTECTED]>
CommitDate: Wed Oct 17 22:30:08 2007 +1000

    [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.
    
    Signed-off-by: Olof Johansson <[EMAIL PROTECTED]>
    Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]>
---
 arch/powerpc/mm/hash_utils_64.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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;
 }
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to