cregit-Linux how code gets into the kernel

Release 4.11 arch/arm/include/asm/hugetlb.h

/*
 * arch/arm/include/asm/hugetlb.h
 *
 * Copyright (C) 2012 ARM Ltd.
 *
 * Based on arch/x86/include/asm/hugetlb.h
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 */

#ifndef _ASM_ARM_HUGETLB_H

#define _ASM_ARM_HUGETLB_H

#include <asm/page.h>
#include <asm-generic/hugetlb.h>

#include <asm/hugetlb-3level.h>


static inline void hugetlb_free_pgd_range(struct mmu_gather *tlb, unsigned long addr, unsigned long end, unsigned long floor, unsigned long ceiling) { free_pgd_range(tlb, addr, end, floor, ceiling); }

Contributors

PersonTokensPropCommitsCommitProp
Catalin Marinas41100.00%1100.00%
Total41100.00%1100.00%


static inline int is_hugepage_only_range(struct mm_struct *mm, unsigned long addr, unsigned long len) { return 0; }

Contributors

PersonTokensPropCommitsCommitProp
Catalin Marinas23100.00%1100.00%
Total23100.00%1100.00%


static inline int prepare_hugepage_range(struct file *file, unsigned long addr, unsigned long len) { struct hstate *h = hstate_file(file); if (len & ~huge_page_mask(h)) return -EINVAL; if (addr & ~huge_page_mask(h)) return -EINVAL; return 0; }

Contributors

PersonTokensPropCommitsCommitProp
Catalin Marinas61100.00%1100.00%
Total61100.00%1100.00%


static inline int huge_pte_none(pte_t pte) { return pte_none(pte); }

Contributors

PersonTokensPropCommitsCommitProp
Catalin Marinas16100.00%1100.00%
Total16100.00%1100.00%


static inline pte_t huge_pte_wrprotect(pte_t pte) { return pte_wrprotect(pte); }

Contributors

PersonTokensPropCommitsCommitProp
Catalin Marinas16100.00%1100.00%
Total16100.00%1100.00%


static inline void arch_clear_hugepage_flags(struct page *page) { clear_bit(PG_dcache_clean, &page->flags); }

Contributors

PersonTokensPropCommitsCommitProp
Catalin Marinas22100.00%1100.00%
Total22100.00%1100.00%

#endif /* _ASM_ARM_HUGETLB_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
Catalin Marinas198100.00%1100.00%
Total198100.00%1100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.