cregit-Linux how code gets into the kernel

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

/*
 *  IBM System z Huge TLB Page Support for Kernel.
 *
 *    Copyright IBM Corp. 2008
 *    Author(s): Gerald Schaefer <gerald.schaefer@de.ibm.com>
 */

#ifndef _ASM_S390_HUGETLB_H

#define _ASM_S390_HUGETLB_H

#include <asm/page.h>
#include <asm/pgtable.h>



#define is_hugepage_only_range(mm, addr, len)	0

#define hugetlb_free_pgd_range			free_pgd_range

#define hugepages_supported()			(MACHINE_HAS_EDAT1)

void set_huge_pte_at(struct mm_struct *mm, unsigned long addr,
		     pte_t *ptep, pte_t pte);
pte_t huge_ptep_get(pte_t *ptep);
pte_t huge_ptep_get_and_clear(struct mm_struct *mm,
			      unsigned long addr, pte_t *ptep);

/*
 * If the arch doesn't supply something else, assume that hugepage
 * size aligned regions are ok without further preparation.
 */

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

Contributors

PersonTokensPropCommitsCommitProp
Gerald Schaefer4088.89%150.00%
Andi Kleen511.11%150.00%
Total45100.00%2100.00%

#define arch_clear_hugepage_flags(page) do { } while (0)
static inline void huge_pte_clear(struct mm_struct *mm, unsigned long addr, pte_t *ptep) { if ((pte_val(*ptep) & _REGION_ENTRY_TYPE_MASK) == _REGION_ENTRY_TYPE_R3) pte_val(*ptep) = _REGION3_ENTRY_EMPTY; else pte_val(*ptep) = _SEGMENT_ENTRY_EMPTY; }

Contributors

PersonTokensPropCommitsCommitProp
Gerald Schaefer3976.47%266.67%
Martin Schwidefsky1223.53%133.33%
Total51100.00%3100.00%


static inline void huge_ptep_clear_flush(struct vm_area_struct *vma, unsigned long address, pte_t *ptep) { huge_ptep_get_and_clear(vma->vm_mm, address, ptep); }

Contributors

PersonTokensPropCommitsCommitProp
Gerald Schaefer2270.97%266.67%
Martin Schwidefsky929.03%133.33%
Total31100.00%3100.00%


static inline int huge_ptep_set_access_flags(struct vm_area_struct *vma, unsigned long addr, pte_t *ptep, pte_t pte, int dirty) { int changed = !pte_same(huge_ptep_get(ptep), pte); if (changed) { huge_ptep_get_and_clear(vma->vm_mm, addr, ptep); set_huge_pte_at(vma->vm_mm, addr, ptep, pte); } return changed; }

Contributors

PersonTokensPropCommitsCommitProp
Martin Schwidefsky4257.53%150.00%
Gerald Schaefer3142.47%150.00%
Total73100.00%2100.00%


static inline void huge_ptep_set_wrprotect(struct mm_struct *mm, unsigned long addr, pte_t *ptep) { pte_t pte = huge_ptep_get_and_clear(mm, addr, ptep); set_huge_pte_at(mm, addr, ptep, pte_wrprotect(pte)); }

Contributors

PersonTokensPropCommitsCommitProp
Martin Schwidefsky2452.17%150.00%
Gerald Schaefer2247.83%150.00%
Total46100.00%2100.00%


static inline pte_t mk_huge_pte(struct page *page, pgprot_t pgprot) { return mk_pte(page, pgprot); }

Contributors

PersonTokensPropCommitsCommitProp
Gerald Schaefer1982.61%150.00%
Martin Schwidefsky417.39%150.00%
Total23100.00%2100.00%


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

Contributors

PersonTokensPropCommitsCommitProp
Martin Schwidefsky1168.75%150.00%
Gerald Schaefer531.25%150.00%
Total16100.00%2100.00%


static inline int huge_pte_write(pte_t pte) { return pte_write(pte); }

Contributors

PersonTokensPropCommitsCommitProp
Gerald Schaefer1487.50%150.00%
Martin Schwidefsky212.50%150.00%
Total16100.00%2100.00%


static inline int huge_pte_dirty(pte_t pte) { return pte_dirty(pte); }

Contributors

PersonTokensPropCommitsCommitProp
Gerald Schaefer1275.00%150.00%
Martin Schwidefsky425.00%150.00%
Total16100.00%2100.00%


static inline pte_t huge_pte_mkwrite(pte_t pte) { return pte_mkwrite(pte); }

Contributors

PersonTokensPropCommitsCommitProp
Gerald Schaefer1487.50%150.00%
Martin Schwidefsky212.50%150.00%
Total16100.00%2100.00%


static inline pte_t huge_pte_mkdirty(pte_t pte) { return pte_mkdirty(pte); }

Contributors

PersonTokensPropCommitsCommitProp
Gerald Schaefer1381.25%150.00%
Martin Schwidefsky318.75%150.00%
Total16100.00%2100.00%


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

Contributors

PersonTokensPropCommitsCommitProp
Gerald Schaefer1381.25%150.00%
Martin Schwidefsky318.75%150.00%
Total16100.00%2100.00%


static inline pte_t huge_pte_modify(pte_t pte, pgprot_t newprot) { return pte_modify(pte, newprot); }

Contributors

PersonTokensPropCommitsCommitProp
Martin Schwidefsky1257.14%150.00%
Gerald Schaefer942.86%150.00%
Total21100.00%2100.00%

#endif /* _ASM_S390_HUGETLB_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
Gerald Schaefer30564.21%550.00%
Martin Schwidefsky15332.21%110.00%
Will Deacon71.47%110.00%
Andi Kleen51.05%110.00%
Dominik Dingel40.84%110.00%
Heiko Carstens10.21%110.00%
Total475100.00%10100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.