Release 4.14 arch/cris/include/asm/pgalloc.h
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _CRIS_PGALLOC_H
#define _CRIS_PGALLOC_H
#include <linux/threads.h>
#include <linux/mm.h>
#define pmd_populate_kernel(mm, pmd, pte) pmd_set(pmd, pte)
#define pmd_populate(mm, pmd, pte) pmd_set(pmd, page_address(pte))
#define pmd_pgtable(pmd) pmd_page(pmd)
/*
* Allocate and free page tables.
*/
static inline pgd_t *pgd_alloc (struct mm_struct *mm)
{
return (pgd_t *)get_zeroed_page(GFP_KERNEL);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds | 15 | 65.22% | 2 | 50.00% |
Mikael Starvik | 7 | 30.43% | 1 | 25.00% |
Adrian Bunk | 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)
{
free_page((unsigned long)pgd);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds | 18 | 72.00% | 2 | 40.00% |
Benjamin Herrenschmidt | 5 | 20.00% | 1 | 20.00% |
Adrian Bunk | 1 | 4.00% | 1 | 20.00% |
Mikael Starvik | 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 |
Linus Torvalds | 29 | 82.86% | 2 | 33.33% |
Mikael Starvik | 3 | 8.57% | 1 | 16.67% |
Christoph Lameter | 1 | 2.86% | 1 | 16.67% |
Adrian Bunk | 1 | 2.86% | 1 | 16.67% |
Andrew Morton | 1 | 2.86% | 1 | 16.67% |
Total | 35 | 100.00% | 6 | 100.00% |
static inline pgtable_t pte_alloc_one(struct mm_struct *mm, unsigned long address)
{
struct page *pte;
pte = alloc_pages(GFP_KERNEL|__GFP_ZERO, 0);
if (!pte)
return NULL;
if (!pgtable_page_ctor(pte)) {
__free_page(pte);
return NULL;
}
return pte;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Kirill A. Shutemov | 21 | 34.43% | 2 | 25.00% |
Linus Torvalds | 20 | 32.79% | 2 | 25.00% |
Mikael Starvik | 12 | 19.67% | 1 | 12.50% |
Martin Schwidefsky | 6 | 9.84% | 1 | 12.50% |
Christoph Lameter | 1 | 1.64% | 1 | 12.50% |
Adrian Bunk | 1 | 1.64% | 1 | 12.50% |
Total | 61 | 100.00% | 8 | 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 | 14 | 56.00% | 1 | 25.00% |
Mikael Starvik | 5 | 20.00% | 1 | 25.00% |
Benjamin Herrenschmidt | 5 | 20.00% | 1 | 25.00% |
Adrian Bunk | 1 | 4.00% | 1 | 25.00% |
Total | 25 | 100.00% | 4 | 100.00% |
static inline void pte_free(struct mm_struct *mm, pgtable_t pte)
{
pgtable_page_dtor(pte);
__free_page(pte);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds | 10 | 40.00% | 1 | 20.00% |
Martin Schwidefsky | 6 | 24.00% | 1 | 20.00% |
Benjamin Herrenschmidt | 4 | 16.00% | 1 | 20.00% |
Mikael Starvik | 4 | 16.00% | 1 | 20.00% |
Adrian Bunk | 1 | 4.00% | 1 | 20.00% |
Total | 25 | 100.00% | 5 | 100.00% |
#define __pte_free_tlb(tlb,pte,address) \
do { \
pgtable_page_dtor(pte); \
tlb_remove_page((tlb), pte); \
} while (0)
#define check_pgt_cache() do { } while (0)
#endif
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds | 135 | 52.73% | 3 | 23.08% |
Mikael Starvik | 53 | 20.70% | 1 | 7.69% |
Kirill A. Shutemov | 21 | 8.20% | 2 | 15.38% |
Martin Schwidefsky | 21 | 8.20% | 1 | 7.69% |
Benjamin Herrenschmidt | 16 | 6.25% | 2 | 15.38% |
Adrian Bunk | 6 | 2.34% | 1 | 7.69% |
Christoph Lameter | 2 | 0.78% | 1 | 7.69% |
Greg Kroah-Hartman | 1 | 0.39% | 1 | 7.69% |
Andrew Morton | 1 | 0.39% | 1 | 7.69% |
Total | 256 | 100.00% | 13 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.