Release 4.14 arch/alpha/include/asm/pgalloc.h
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ALPHA_PGALLOC_H
#define _ALPHA_PGALLOC_H
#include <linux/mm.h>
#include <linux/mmzone.h>
/*
* Allocate and free page tables. The xxx_kernel() versions are
* used to allocate a kernel page table - this turns on ASN bits
* if any.
*/
static inline void
pmd_populate(struct mm_struct *mm, pmd_t *pmd, pgtable_t pte)
{
pmd_set(pmd, (pte_t *)(page_to_pa(pte) + PAGE_OFFSET));
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Richard Henderson | 15 | 40.54% | 1 | 16.67% |
Linus Torvalds (pre-git) | 9 | 24.32% | 1 | 16.67% |
Linus Torvalds | 6 | 16.22% | 1 | 16.67% |
Ivan Kokshaysky | 3 | 8.11% | 1 | 16.67% |
Al Viro | 3 | 8.11% | 1 | 16.67% |
Martin Schwidefsky | 1 | 2.70% | 1 | 16.67% |
Total | 37 | 100.00% | 6 | 100.00% |
#define pmd_pgtable(pmd) pmd_page(pmd)
static inline void
pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmd, pte_t *pte)
{
pmd_set(pmd, pte);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Richard Henderson | 13 | 48.15% | 1 | 33.33% |
Linus Torvalds (pre-git) | 8 | 29.63% | 1 | 33.33% |
Linus Torvalds | 6 | 22.22% | 1 | 33.33% |
Total | 27 | 100.00% | 3 | 100.00% |
static inline void
pgd_populate(struct mm_struct *mm, pgd_t *pgd, pmd_t *pmd)
{
pgd_set(pgd, pmd);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Richard Henderson | 15 | 55.56% | 1 | 33.33% |
Linus Torvalds (pre-git) | 12 | 44.44% | 2 | 66.67% |
Total | 27 | 100.00% | 3 | 100.00% |
extern pgd_t *pgd_alloc(struct mm_struct *mm);
static inline void
pgd_free(struct mm_struct *mm, pgd_t *pgd)
{
free_page((unsigned long)pgd);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds (pre-git) | 16 | 64.00% | 2 | 50.00% |
Benjamin Herrenschmidt | 5 | 20.00% | 1 | 25.00% |
Richard Henderson | 4 | 16.00% | 1 | 25.00% |
Total | 25 | 100.00% | 4 | 100.00% |
static inline pmd_t *
pmd_alloc_one(struct mm_struct *mm, unsigned long address)
{
pmd_t *ret = (pmd_t *)__get_free_page(GFP_KERNEL|__GFP_ZERO);
return ret;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds | 20 | 57.14% | 1 | 20.00% |
Linus Torvalds (pre-git) | 7 | 20.00% | 1 | 20.00% |
Richard Henderson | 6 | 17.14% | 1 | 20.00% |
Christoph Lameter | 1 | 2.86% | 1 | 20.00% |
Andrew Morton | 1 | 2.86% | 1 | 20.00% |
Total | 35 | 100.00% | 5 | 100.00% |
static inline void
pmd_free(struct mm_struct *mm, pmd_t *pmd)
{
free_page((unsigned long)pmd);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds (pre-git) | 11 | 44.00% | 2 | 40.00% |
Richard Henderson | 8 | 32.00% | 1 | 20.00% |
Benjamin Herrenschmidt | 5 | 20.00% | 1 | 20.00% |
Linus Torvalds | 1 | 4.00% | 1 | 20.00% |
Total | 25 | 100.00% | 5 | 100.00% |
static inline pte_t *
pte_alloc_one_kernel(struct mm_struct *mm, unsigned long address)
{
pte_t *pte = (pte_t *)__get_free_page(GFP_KERNEL|__GFP_ZERO);
return pte;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Ivan Kokshaysky | 23 | 65.71% | 1 | 50.00% |
Richard Henderson | 12 | 34.29% | 1 | 50.00% |
Total | 35 | 100.00% | 2 | 100.00% |
static inline void
pte_free_kernel(struct mm_struct *mm, pte_t *pte)
{
free_page((unsigned long)pte);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds (pre-git) | 16 | 64.00% | 2 | 50.00% |
Benjamin Herrenschmidt | 5 | 20.00% | 1 | 25.00% |
Richard Henderson | 4 | 16.00% | 1 | 25.00% |
Total | 25 | 100.00% | 4 | 100.00% |
static inline pgtable_t
pte_alloc_one(struct mm_struct *mm, unsigned long address)
{
pte_t *pte = pte_alloc_one_kernel(mm, address);
struct page *page;
if (!pte)
return NULL;
page = virt_to_page(pte);
if (!pgtable_page_ctor(page)) {
__free_page(page);
return NULL;
}
return page;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Martin Schwidefsky | 20 | 29.41% | 1 | 16.67% |
Andrew Morton | 15 | 22.06% | 1 | 16.67% |
Kirill A. Shutemov | 13 | 19.12% | 1 | 16.67% |
Richard Henderson | 12 | 17.65% | 1 | 16.67% |
Linus Torvalds (pre-git) | 8 | 11.76% | 2 | 33.33% |
Total | 68 | 100.00% | 6 | 100.00% |
static inline void
pte_free(struct mm_struct *mm, pgtable_t page)
{
pgtable_page_dtor(page);
__free_page(page);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Richard Henderson | 12 | 48.00% | 1 | 25.00% |
Martin Schwidefsky | 6 | 24.00% | 1 | 25.00% |
Benjamin Herrenschmidt | 4 | 16.00% | 1 | 25.00% |
Linus Torvalds (pre-git) | 3 | 12.00% | 1 | 25.00% |
Total | 25 | 100.00% | 4 | 100.00% |
#define check_pgt_cache() do { } while (0)
#endif /* _ALPHA_PGALLOC_H */
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Richard Henderson | 117 | 31.71% | 2 | 12.50% |
Linus Torvalds (pre-git) | 102 | 27.64% | 2 | 12.50% |
Martin Schwidefsky | 34 | 9.21% | 1 | 6.25% |
Linus Torvalds | 33 | 8.94% | 1 | 6.25% |
Ivan Kokshaysky | 30 | 8.13% | 3 | 18.75% |
Benjamin Herrenschmidt | 19 | 5.15% | 1 | 6.25% |
Andrew Morton | 16 | 4.34% | 2 | 12.50% |
Kirill A. Shutemov | 13 | 3.52% | 1 | 6.25% |
Al Viro | 3 | 0.81% | 1 | 6.25% |
Greg Kroah-Hartman | 1 | 0.27% | 1 | 6.25% |
Christoph Lameter | 1 | 0.27% | 1 | 6.25% |
Total | 369 | 100.00% | 16 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.