]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Trivial cleanups to hugepage support
authorAndrew Morton <akpm@osdl.org>
Sat, 31 Jan 2004 02:02:26 +0000 (18:02 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Sat, 31 Jan 2004 02:02:26 +0000 (18:02 -0800)
From: David Gibson <david@gibson.dropbear.id.au>

These are some trivial cleanups to the hugepage ppc64 support

arch/ppc64/mm/hugetlbpage.c

index 738adc97e478703c71b165b859a2ef5072a5f9b4..78ba33722c023c49c1d9aaee1c612a3c63b16635 100644 (file)
@@ -654,10 +654,9 @@ int hash_huge_page(struct mm_struct *mm, unsigned long access,
        unsigned long hpteflags, prpn, flags;
        long slot;
 
-       ea &= ~(HPAGE_SIZE-1);
-
        /* We have to find the first hugepte in the batch, since
         * that's the one that will store the HPTE flags */
+       ea &= HPAGE_MASK;
        ptep = hugepte_offset(mm, ea);
 
        /* Search the Linux page table for a match with va */
@@ -885,10 +884,11 @@ static int __init hugetlb_init(void)
                        spin_unlock(&htlbpage_lock);
                }
                htlbpage_max = htlbpage_free = htlbpage_total = i;
-               printk("Total HugeTLB memory allocated, %d\n", htlbpage_free);
+               printk(KERN_INFO "Total HugeTLB memory allocated, %d\n",
+                      htlbpage_free);
        } else {
                htlbpage_max = 0;
-               printk("CPU does not support HugeTLB\n");
+               printk(KERN_INFO "CPU does not support HugeTLB\n");
        }
 
        return 0;