Release 4.11 arch/alpha/include/asm/pgalloc.h
#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 | 16 | 43.24% | 1 | 16.67% |
Linus Torvalds (pre-git) | 8 | 21.62% | 1 | 16.67% |
Linus Torvalds | 6 | 16.22% | 1 | 16.67% |
Al Viro | 3 | 8.11% | 1 | 16.67% |
Ivan Kokshaysky | 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 | 25 | 92.59% | 1 | 33.33% |
Linus Torvalds (pre-git) | 2 | 7.41% | 2 | 66.67% |
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) | 19 | 76.00% | 2 | 50.00% |
Benjamin Herrenschmidt | 5 | 20.00% | 1 | 25.00% |
Richard Henderson | 1 | 4.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 | 25 | 71.43% | 1 | 25.00% |
Linus Torvalds (pre-git) | 8 | 22.86% | 1 | 25.00% |
Christoph Lameter | 1 | 2.86% | 1 | 25.00% |
Andrew Morton | 1 | 2.86% | 1 | 25.00% |
Total | 35 | 100.00% | 4 | 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) | 19 | 76.00% | 2 | 50.00% |
Benjamin Herrenschmidt | 5 | 20.00% | 1 | 25.00% |
Richard Henderson | 1 | 4.00% | 1 | 25.00% |
Total | 25 | 100.00% | 4 | 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 | 25.00% |
Linus Torvalds (pre-git) | 8 | 22.86% | 1 | 25.00% |
Linus Torvalds | 3 | 8.57% | 1 | 25.00% |
Richard Henderson | 1 | 2.86% | 1 | 25.00% |
Total | 35 | 100.00% | 4 | 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 |
Richard Henderson | 11 | 44.00% | 1 | 33.33% |
Linus Torvalds | 9 | 36.00% | 1 | 33.33% |
Benjamin Herrenschmidt | 5 | 20.00% | 1 | 33.33% |
Total | 25 | 100.00% | 3 | 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 | 14.29% |
Andrew Morton | 15 | 22.06% | 1 | 14.29% |
Kirill A. Shutemov | 13 | 19.12% | 1 | 14.29% |
Linus Torvalds | 7 | 10.29% | 1 | 14.29% |
Richard Henderson | 7 | 10.29% | 1 | 14.29% |
Linus Torvalds (pre-git) | 6 | 8.82% | 2 | 28.57% |
Total | 68 | 100.00% | 7 | 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 |
Linus Torvalds (pre-git) | 10 | 40.00% | 2 | 40.00% |
Martin Schwidefsky | 6 | 24.00% | 1 | 20.00% |
Richard Henderson | 5 | 20.00% | 1 | 20.00% |
Benjamin Herrenschmidt | 4 | 16.00% | 1 | 20.00% |
Total | 25 | 100.00% | 5 | 100.00% |
#define check_pgt_cache() do { } while (0)
#endif /* _ALPHA_PGALLOC_H */
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds (pre-git) | 104 | 28.26% | 3 | 18.75% |
Richard Henderson | 98 | 26.63% | 2 | 12.50% |
Linus Torvalds | 50 | 13.59% | 1 | 6.25% |
Martin Schwidefsky | 34 | 9.24% | 1 | 6.25% |
Ivan Kokshaysky | 30 | 8.15% | 3 | 18.75% |
Benjamin Herrenschmidt | 19 | 5.16% | 1 | 6.25% |
Andrew Morton | 16 | 4.35% | 2 | 12.50% |
Kirill A. Shutemov | 13 | 3.53% | 1 | 6.25% |
Al Viro | 3 | 0.82% | 1 | 6.25% |
Christoph Lameter | 1 | 0.27% | 1 | 6.25% |
Total | 368 | 100.00% | 16 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.