]> Pileus Git - ~andy/linux/blobdiff - arch/sparc/mm/tsb.c
sparc64:tsb.c:use array size macro rather than number
[~andy/linux] / arch / sparc / mm / tsb.c
index 3b3a360b429a8ac78b5089a98c09027aa40634a3..f5d506fdddad3dea459aa97308e9a8872f34ffe8 100644 (file)
@@ -273,7 +273,7 @@ void __init pgtable_cache_init(void)
                prom_halt();
        }
 
-       for (i = 0; i < 8; i++) {
+       for (i = 0; i < ARRAY_SIZE(tsb_cache_names); i++) {
                unsigned long size = 8192 << i;
                const char *name = tsb_cache_names[i];