]> Git Repo - linux.git/blobdiff - arch/i386/mm/hugetlbpage.c
[PATCH] i386: initialize end-of-memory variables as early as possible
[linux.git] / arch / i386 / mm / hugetlbpage.c
index d524127c9afc3b2f92b3e5ad6b3dbce20bec42f7..1719a8141f81aee9f480087be3e54a68eef4adef 100644 (file)
@@ -4,7 +4,6 @@
  * Copyright (C) 2002, Rohit Seth <[email protected]>
  */
 
-#include <linux/config.h>
 #include <linux/init.h>
 #include <linux/fs.h>
 #include <linux/mm.h>
@@ -48,18 +47,6 @@ pte_t *huge_pte_offset(struct mm_struct *mm, unsigned long addr)
        return (pte_t *) pmd;
 }
 
-/*
- * This function checks for proper alignment of input addr and len parameters.
- */
-int is_aligned_hugepage_range(unsigned long addr, unsigned long len)
-{
-       if (len & ~HPAGE_MASK)
-               return -EINVAL;
-       if (addr & ~HPAGE_MASK)
-               return -EINVAL;
-       return 0;
-}
-
 #if 0  /* This is just for testing */
 struct page *
 follow_huge_addr(struct mm_struct *mm, unsigned long address, int write)
This page took 0.031183 seconds and 4 git commands to generate.