Release 4.14 arch/ia64/include/asm/pgalloc.h
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ASM_IA64_PGALLOC_H
#define _ASM_IA64_PGALLOC_H
/*
* This file contains the functions and defines necessary to allocate
* page tables.
*
* This hopefully works with any (fixed) ia-64 page-size, as defined
* in <asm/page.h> (currently 8192).
*
* Copyright (C) 1998-2001 Hewlett-Packard Co
* David Mosberger-Tang <davidm@hpl.hp.com>
* Copyright (C) 2000, Goutham Rao <goutham.rao@intel.com>
*/
#include <linux/compiler.h>
#include <linux/mm.h>
#include <linux/page-flags.h>
#include <linux/threads.h>
#include <linux/quicklist.h>
#include <asm/mmu_context.h>
static inline pgd_t *pgd_alloc(struct mm_struct *mm)
{
return quicklist_alloc(0, GFP_KERNEL, NULL);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Robin Holt | 8 | 34.78% | 1 | 25.00% |
Christoph Lameter | 8 | 34.78% | 1 | 25.00% |
Linus Torvalds | 6 | 26.09% | 1 | 25.00% |
Linus Torvalds (pre-git) | 1 | 4.35% | 1 | 25.00% |
Total | 23 | 100.00% | 4 | 100.00% |
static inline void pgd_free(struct mm_struct *mm, pgd_t *pgd)
{
quicklist_free(0, NULL, pgd);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Robin Holt | 8 | 32.00% | 1 | 20.00% |
Linus Torvalds (pre-git) | 5 | 20.00% | 1 | 20.00% |
Benjamin Herrenschmidt | 5 | 20.00% | 1 | 20.00% |
Christoph Lameter | 5 | 20.00% | 1 | 20.00% |
Linus Torvalds | 2 | 8.00% | 1 | 20.00% |
Total | 25 | 100.00% | 5 | 100.00% |
#if CONFIG_PGTABLE_LEVELS == 4
static inline void
pgd_populate(struct mm_struct *mm, pgd_t * pgd_entry, pud_t * pud)
{
pgd_val(*pgd_entry) = __pa(pud);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Robin Holt | 31 | 100.00% | 1 | 100.00% |
Total | 31 | 100.00% | 1 | 100.00% |
static inline pud_t *pud_alloc_one(struct mm_struct *mm, unsigned long addr)
{
return quicklist_alloc(0, GFP_KERNEL, NULL);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Robin Holt | 19 | 70.37% | 1 | 50.00% |
Christoph Lameter | 8 | 29.63% | 1 | 50.00% |
Total | 27 | 100.00% | 2 | 100.00% |
static inline void pud_free(struct mm_struct *mm, pud_t *pud)
{
quicklist_free(0, NULL, pud);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Robin Holt | 15 | 60.00% | 1 | 33.33% |
Christoph Lameter | 5 | 20.00% | 1 | 33.33% |
Benjamin Herrenschmidt | 5 | 20.00% | 1 | 33.33% |
Total | 25 | 100.00% | 3 | 100.00% |
#define __pud_free_tlb(tlb, pud, address) pud_free((tlb)->mm, pud)
#endif /* CONFIG_PGTABLE_LEVELS == 4 */
static inline void
pud_populate(struct mm_struct *mm, pud_t * pud_entry, pmd_t * pmd)
{
pud_val(*pud_entry) = __pa(pmd);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Robin Holt | 16 | 51.61% | 1 | 20.00% |
Linus Torvalds | 7 | 22.58% | 1 | 20.00% |
Linus Torvalds (pre-git) | 7 | 22.58% | 2 | 40.00% |
Yanmin Zhang | 1 | 3.23% | 1 | 20.00% |
Total | 31 | 100.00% | 5 | 100.00% |
static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long addr)
{
return quicklist_alloc(0, GFP_KERNEL, NULL);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds (pre-git) | 13 | 48.15% | 2 | 50.00% |
Christoph Lameter | 8 | 29.63% | 1 | 25.00% |
Linus Torvalds | 6 | 22.22% | 1 | 25.00% |
Total | 27 | 100.00% | 4 | 100.00% |
static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd)
{
quicklist_free(0, NULL, pmd);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds (pre-git) | 7 | 28.00% | 2 | 28.57% |
Linus Torvalds | 5 | 20.00% | 1 | 14.29% |
Benjamin Herrenschmidt | 5 | 20.00% | 1 | 14.29% |
Christoph Lameter | 5 | 20.00% | 1 | 14.29% |
Robin Holt | 2 | 8.00% | 1 | 14.29% |
Yanmin Zhang | 1 | 4.00% | 1 | 14.29% |
Total | 25 | 100.00% | 7 | 100.00% |
#define __pmd_free_tlb(tlb, pmd, address) pmd_free((tlb)->mm, pmd)
static inline void
pmd_populate(struct mm_struct *mm, pmd_t * pmd_entry, pgtable_t pte)
{
pmd_val(*pmd_entry) = page_to_phys(pte);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
David Mosberger-Tang | 15 | 50.00% | 1 | 25.00% |
Linus Torvalds | 9 | 30.00% | 1 | 25.00% |
Linus Torvalds (pre-git) | 5 | 16.67% | 1 | 25.00% |
Martin Schwidefsky | 1 | 3.33% | 1 | 25.00% |
Total | 30 | 100.00% | 4 | 100.00% |
#define pmd_pgtable(pmd) pmd_page(pmd)
static inline void
pmd_populate_kernel(struct mm_struct *mm, pmd_t * pmd_entry, pte_t * pte)
{
pmd_val(*pmd_entry) = __pa(pte);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds | 16 | 51.61% | 1 | 33.33% |
David Mosberger-Tang | 14 | 45.16% | 1 | 33.33% |
Linus Torvalds (pre-git) | 1 | 3.23% | 1 | 33.33% |
Total | 31 | 100.00% | 3 | 100.00% |
static inline pgtable_t pte_alloc_one(struct mm_struct *mm, unsigned long addr)
{
struct page *page;
void *pg;
pg = quicklist_alloc(0, GFP_KERNEL, NULL);
if (!pg)
return NULL;
page = virt_to_page(pg);
if (!pgtable_page_ctor(page)) {
quicklist_free(0, NULL, pg);
return NULL;
}
return page;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Martin Schwidefsky | 27 | 35.53% | 1 | 11.11% |
Kirill A. Shutemov | 17 | 22.37% | 1 | 11.11% |
Linus Torvalds (pre-git) | 10 | 13.16% | 2 | 22.22% |
Christoph Lameter | 8 | 10.53% | 1 | 11.11% |
Kirill Korotaev | 5 | 6.58% | 1 | 11.11% |
Linus Torvalds | 5 | 6.58% | 1 | 11.11% |
David Mosberger-Tang | 3 | 3.95% | 1 | 11.11% |
Robin Holt | 1 | 1.32% | 1 | 11.11% |
Total | 76 | 100.00% | 9 | 100.00% |
static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm,
unsigned long addr)
{
return quicklist_alloc(0, GFP_KERNEL, NULL);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds (pre-git) | 12 | 44.44% | 2 | 40.00% |
Christoph Lameter | 8 | 29.63% | 1 | 20.00% |
Linus Torvalds | 6 | 22.22% | 1 | 20.00% |
David Mosberger-Tang | 1 | 3.70% | 1 | 20.00% |
Total | 27 | 100.00% | 5 | 100.00% |
static inline void pte_free(struct mm_struct *mm, pgtable_t pte)
{
pgtable_page_dtor(pte);
quicklist_free_page(0, NULL, pte);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds | 10 | 34.48% | 1 | 20.00% |
Martin Schwidefsky | 6 | 20.69% | 1 | 20.00% |
Christoph Lameter | 5 | 17.24% | 1 | 20.00% |
David Mosberger-Tang | 4 | 13.79% | 1 | 20.00% |
Benjamin Herrenschmidt | 4 | 13.79% | 1 | 20.00% |
Total | 29 | 100.00% | 5 | 100.00% |
static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte)
{
quicklist_free(0, NULL, pte);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
David Mosberger-Tang | 12 | 48.00% | 1 | 20.00% |
Benjamin Herrenschmidt | 5 | 20.00% | 1 | 20.00% |
Christoph Lameter | 5 | 20.00% | 1 | 20.00% |
Linus Torvalds | 2 | 8.00% | 1 | 20.00% |
Linus Torvalds (pre-git) | 1 | 4.00% | 1 | 20.00% |
Total | 25 | 100.00% | 5 | 100.00% |
static inline void check_pgt_cache(void)
{
quicklist_trim(0, NULL, 25, 16);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Christoph Lameter | 20 | 100.00% | 1 | 100.00% |
Total | 20 | 100.00% | 1 | 100.00% |
#define __pte_free_tlb(tlb, pte, address) pte_free((tlb)->mm, pte)
#endif /* _ASM_IA64_PGALLOC_H */
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Robin Holt | 110 | 20.79% | 2 | 9.09% |
Christoph Lameter | 89 | 16.82% | 1 | 4.55% |
Linus Torvalds (pre-git) | 78 | 14.74% | 4 | 18.18% |
Linus Torvalds | 75 | 14.18% | 2 | 9.09% |
David Mosberger-Tang | 68 | 12.85% | 3 | 13.64% |
Martin Schwidefsky | 41 | 7.75% | 1 | 4.55% |
Benjamin Herrenschmidt | 33 | 6.24% | 2 | 9.09% |
Kirill A. Shutemov | 23 | 4.35% | 2 | 9.09% |
Kirill Korotaev | 5 | 0.95% | 1 | 4.55% |
Yanmin Zhang | 2 | 0.38% | 1 | 4.55% |
Manik Raina | 2 | 0.38% | 1 | 4.55% |
Andrew Morton | 2 | 0.38% | 1 | 4.55% |
Greg Kroah-Hartman | 1 | 0.19% | 1 | 4.55% |
Total | 529 | 100.00% | 22 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.