Contributors: 17
Author Tokens Token Proportion Commits Commit Proportion
Gerald Schaefer 48 17.39% 4 10.53%
Dave Kleikamp 40 14.49% 1 2.63%
Linus Torvalds (pre-git) 35 12.68% 5 13.16%
David S. Miller 26 9.42% 4 10.53%
Alexandre Ghiti 18 6.52% 6 15.79%
Sam Ravnborg 18 6.52% 1 2.63%
Andrew Morton 17 6.16% 3 7.89%
Linus Torvalds 12 4.35% 1 2.63%
Nitin Gupta 11 3.99% 3 7.89%
Andi Kleen 10 3.62% 1 2.63%
Hugh Dickins 9 3.26% 2 5.26%
Ryan Roberts 7 2.54% 1 2.63%
David Gibson 7 2.54% 2 5.26%
David Mosberger-Tang 6 2.17% 1 2.63%
Qinglin Pan 6 2.17% 1 2.63%
Baolin Wang 5 1.81% 1 2.63%
Greg Kroah-Hartman 1 0.36% 1 2.63%
Total 276 38


/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ASM_SPARC64_HUGETLB_H
#define _ASM_SPARC64_HUGETLB_H

#include <asm/page.h>

#ifdef CONFIG_HUGETLB_PAGE
struct pud_huge_patch_entry {
	unsigned int addr;
	unsigned int insn;
};
extern struct pud_huge_patch_entry __pud_huge_patch, __pud_huge_patch_end;
#endif

#define __HAVE_ARCH_HUGE_SET_HUGE_PTE_AT
void set_huge_pte_at(struct mm_struct *mm, unsigned long addr,
		     pte_t *ptep, pte_t pte, unsigned long sz);
void __set_huge_pte_at(struct mm_struct *mm, unsigned long addr,
		     pte_t *ptep, pte_t pte);

#define __HAVE_ARCH_HUGE_PTEP_GET_AND_CLEAR
pte_t huge_ptep_get_and_clear(struct mm_struct *mm, unsigned long addr,
			      pte_t *ptep);

#define __HAVE_ARCH_HUGE_PTEP_CLEAR_FLUSH
static inline pte_t huge_ptep_clear_flush(struct vm_area_struct *vma,
					  unsigned long addr, pte_t *ptep)
{
	return *ptep;
}

#define __HAVE_ARCH_HUGE_PTEP_SET_WRPROTECT
static inline void huge_ptep_set_wrprotect(struct mm_struct *mm,
					   unsigned long addr, pte_t *ptep)
{
	pte_t old_pte = *ptep;
	__set_huge_pte_at(mm, addr, ptep, pte_wrprotect(old_pte));
}

#define __HAVE_ARCH_HUGE_PTEP_SET_ACCESS_FLAGS
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(*ptep, pte);
	if (changed) {
		__set_huge_pte_at(vma->vm_mm, addr, ptep, pte);
		flush_tlb_page(vma, addr);
	}
	return changed;
}

#define __HAVE_ARCH_HUGETLB_FREE_PGD_RANGE
void hugetlb_free_pgd_range(struct mmu_gather *tlb, unsigned long addr,
			    unsigned long end, unsigned long floor,
			    unsigned long ceiling);

#include <asm-generic/hugetlb.h>

#endif /* _ASM_SPARC64_HUGETLB_H */