hugetlbpage.c (93ea910295cae7ad69571ed1570e5b5ca54a2f9e) hugetlbpage.c (f693d38d9468101587175b1e62d7e4483b51d8f5)
1/*
2 * PPC Huge TLB Page Support for Kernel.
3 *
4 * Copyright (C) 2003 David Gibson, IBM Corporation.
5 * Copyright (C) 2011 Becky Bruce, Freescale Semiconductor
6 *
7 * Based on the IA-32 version:
8 * Copyright (C) 2002, Rohit Seth <rohit.seth@intel.com>

--- 544 unchanged lines hidden (view full) ---

553 unsigned long len, unsigned long pgoff,
554 unsigned long flags)
555{
556#ifdef CONFIG_PPC_RADIX_MMU
557 if (radix_enabled())
558 return radix__hugetlb_get_unmapped_area(file, addr, len,
559 pgoff, flags);
560#endif
1/*
2 * PPC Huge TLB Page Support for Kernel.
3 *
4 * Copyright (C) 2003 David Gibson, IBM Corporation.
5 * Copyright (C) 2011 Becky Bruce, Freescale Semiconductor
6 *
7 * Based on the IA-32 version:
8 * Copyright (C) 2002, Rohit Seth <rohit.seth@intel.com>

--- 544 unchanged lines hidden (view full) ---

553 unsigned long len, unsigned long pgoff,
554 unsigned long flags)
555{
556#ifdef CONFIG_PPC_RADIX_MMU
557 if (radix_enabled())
558 return radix__hugetlb_get_unmapped_area(file, addr, len,
559 pgoff, flags);
560#endif
561#ifdef CONFIG_PPC_MM_SLICES
561#ifdef CONFIG_PPC_64S_HASH_MMU
562 return slice_get_unmapped_area(addr, len, flags, file_to_psize(file), 1);
563#endif
564 BUG();
565}
566#endif
567
568bool __init arch_hugetlb_valid_size(unsigned long size)
569{

--- 111 unchanged lines hidden ---
562 return slice_get_unmapped_area(addr, len, flags, file_to_psize(file), 1);
563#endif
564 BUG();
565}
566#endif
567
568bool __init arch_hugetlb_valid_size(unsigned long size)
569{

--- 111 unchanged lines hidden ---