Release 4.14 arch/sh/include/asm/pgalloc.h
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __ASM_SH_PGALLOC_H
#define __ASM_SH_PGALLOC_H
#include <linux/quicklist.h>
#include <asm/page.h>
#define QUICK_PT 0
/* Other page table pages that are zero on free */
extern pgd_t *pgd_alloc(struct mm_struct *);
extern void pgd_free(struct mm_struct *mm, pgd_t *pgd);
#if PAGETABLE_LEVELS > 2
extern void pud_populate(struct mm_struct *mm, pud_t *pudp, pmd_t *pmd);
extern pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long address);
extern void pmd_free(struct mm_struct *mm, pmd_t *pmd);
#endif
static inline void pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmd,
pte_t *pte)
{
set_pmd(pmd, __pmd((unsigned long)pte));
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Stuart Menefy | 26 | 76.47% | 1 | 33.33% |
Linus Torvalds | 7 | 20.59% | 1 | 33.33% |
Paul Mundt | 1 | 2.94% | 1 | 33.33% |
Total | 34 | 100.00% | 3 | 100.00% |
static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmd,
pgtable_t pte)
{
set_pmd(pmd, __pmd((unsigned long)page_address(pte)));
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Paul Mundt | 30 | 83.33% | 1 | 33.33% |
Stuart Menefy | 5 | 13.89% | 1 | 33.33% |
Martin Schwidefsky | 1 | 2.78% | 1 | 33.33% |
Total | 36 | 100.00% | 3 | 100.00% |
#define pmd_pgtable(pmd) pmd_page(pmd)
/*
* Allocate and free page tables.
*/
static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm,
unsigned long address)
{
return quicklist_alloc(QUICK_PT, GFP_KERNEL, NULL);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds | 12 | 44.44% | 1 | 20.00% |
Linus Torvalds (pre-git) | 8 | 29.63% | 1 | 20.00% |
Paul Mundt | 7 | 25.93% | 3 | 60.00% |
Total | 27 | 100.00% | 5 | 100.00% |
static inline pgtable_t pte_alloc_one(struct mm_struct *mm,
unsigned long address)
{
struct page *page;
void *pg;
pg = quicklist_alloc(QUICK_PT, GFP_KERNEL, NULL);
if (!pg)
return NULL;
page = virt_to_page(pg);
if (!pgtable_page_ctor(page)) {
quicklist_free(QUICK_PT, NULL, pg);
return NULL;
}
return page;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Martin Schwidefsky | 27 | 35.53% | 1 | 14.29% |
Kirill A. Shutemov | 17 | 22.37% | 1 | 14.29% |
Paul Mundt | 17 | 22.37% | 2 | 28.57% |
Linus Torvalds | 9 | 11.84% | 1 | 14.29% |
Linus Torvalds (pre-git) | 6 | 7.89% | 2 | 28.57% |
Total | 76 | 100.00% | 7 | 100.00% |
static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte)
{
quicklist_free(QUICK_PT, NULL, pte);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds (pre-git) | 13 | 52.00% | 2 | 33.33% |
Paul Mundt | 6 | 24.00% | 2 | 33.33% |
Benjamin Herrenschmidt | 5 | 20.00% | 1 | 16.67% |
Linus Torvalds | 1 | 4.00% | 1 | 16.67% |
Total | 25 | 100.00% | 6 | 100.00% |
static inline void pte_free(struct mm_struct *mm, pgtable_t pte)
{
pgtable_page_dtor(pte);
quicklist_free_page(QUICK_PT, NULL, pte);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Paul Mundt | 14 | 48.28% | 2 | 28.57% |
Martin Schwidefsky | 6 | 20.69% | 1 | 14.29% |
Linus Torvalds (pre-git) | 4 | 13.79% | 2 | 28.57% |
Benjamin Herrenschmidt | 4 | 13.79% | 1 | 14.29% |
Linus Torvalds | 1 | 3.45% | 1 | 14.29% |
Total | 29 | 100.00% | 7 | 100.00% |
#define __pte_free_tlb(tlb,pte,addr) \
do { \
pgtable_page_dtor(pte); \
tlb_remove_page((tlb), (pte)); \
} while (0)
static inline void check_pgt_cache(void)
{
quicklist_trim(QUICK_PT, NULL, 25, 16);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Paul Mundt | 19 | 95.00% | 1 | 50.00% |
Andrew Morton | 1 | 5.00% | 1 | 50.00% |
Total | 20 | 100.00% | 2 | 100.00% |
#endif /* __ASM_SH_PGALLOC_H */
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Paul Mundt | 114 | 31.15% | 5 | 27.78% |
Matt Fleming | 73 | 19.95% | 2 | 11.11% |
Martin Schwidefsky | 43 | 11.75% | 1 | 5.56% |
Linus Torvalds (pre-git) | 40 | 10.93% | 2 | 11.11% |
Linus Torvalds | 35 | 9.56% | 2 | 11.11% |
Stuart Menefy | 31 | 8.47% | 1 | 5.56% |
Kirill A. Shutemov | 17 | 4.64% | 1 | 5.56% |
Benjamin Herrenschmidt | 11 | 3.01% | 2 | 11.11% |
Andrew Morton | 1 | 0.27% | 1 | 5.56% |
Greg Kroah-Hartman | 1 | 0.27% | 1 | 5.56% |
Total | 366 | 100.00% | 18 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.