Release 4.14 arch/m68k/include/asm/motorola_pgalloc.h
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _MOTOROLA_PGALLOC_H
#define _MOTOROLA_PGALLOC_H
#include <asm/tlb.h>
#include <asm/tlbflush.h>
extern pmd_t *get_pointer_table(void);
extern int free_pointer_table(pmd_t *);
static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm, unsigned long address)
{
pte_t *pte;
pte = (pte_t *)__get_free_page(GFP_KERNEL|__GFP_ZERO);
if (pte) {
__flush_page_to_ram(pte);
flush_tlb_kernel_page(pte);
nocache_page(pte);
}
return pte;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds | 55 | 94.83% | 1 | 25.00% |
Andrew Morton | 1 | 1.72% | 1 | 25.00% |
Christoph Lameter | 1 | 1.72% | 1 | 25.00% |
Roman Zippel | 1 | 1.72% | 1 | 25.00% |
Total | 58 | 100.00% | 4 | 100.00% |
static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte)
{
cache_page(pte);
free_page((unsigned long) pte);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Roman Zippel | 24 | 80.00% | 1 | 33.33% |
Benjamin Herrenschmidt | 5 | 16.67% | 1 | 33.33% |
Linus Torvalds | 1 | 3.33% | 1 | 33.33% |
Total | 30 | 100.00% | 3 | 100.00% |
static inline pgtable_t pte_alloc_one(struct mm_struct *mm, unsigned long address)
{
struct page *page;
pte_t *pte;
page = alloc_pages(GFP_KERNEL|__GFP_ZERO, 0);
if(!page)
return NULL;
if (!pgtable_page_ctor(page)) {
__free_page(page);
return NULL;
}
pte = kmap(page);
__flush_page_to_ram(pte);
flush_tlb_kernel_page(pte);
nocache_page(pte);
kunmap(page);
return page;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Roman Zippel | 45 | 48.91% | 1 | 12.50% |
Kirill A. Shutemov | 26 | 28.26% | 1 | 12.50% |
Linus Torvalds | 11 | 11.96% | 1 | 12.50% |
Linus Torvalds (pre-git) | 6 | 6.52% | 1 | 12.50% |
Andrew Morton | 2 | 2.17% | 2 | 25.00% |
Martin Schwidefsky | 1 | 1.09% | 1 | 12.50% |
Christoph Lameter | 1 | 1.09% | 1 | 12.50% |
Total | 92 | 100.00% | 8 | 100.00% |
static inline void pte_free(struct mm_struct *mm, pgtable_t page)
{
pgtable_page_dtor(page);
cache_page(kmap(page));
kunmap(page);
__free_page(page);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Roman Zippel | 15 | 39.47% | 1 | 25.00% |
Linus Torvalds (pre-git) | 13 | 34.21% | 1 | 25.00% |
Martin Schwidefsky | 6 | 15.79% | 1 | 25.00% |
Benjamin Herrenschmidt | 4 | 10.53% | 1 | 25.00% |
Total | 38 | 100.00% | 4 | 100.00% |
static inline void __pte_free_tlb(struct mmu_gather *tlb, pgtable_t page,
unsigned long address)
{
pgtable_page_dtor(page);
cache_page(kmap(page));
kunmap(page);
__free_page(page);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds (pre-git) | 15 | 35.71% | 1 | 14.29% |
Roman Zippel | 12 | 28.57% | 1 | 14.29% |
Martin Schwidefsky | 6 | 14.29% | 1 | 14.29% |
Benjamin Herrenschmidt | 4 | 9.52% | 1 | 14.29% |
Andrew Morton | 3 | 7.14% | 2 | 28.57% |
Linus Torvalds | 2 | 4.76% | 1 | 14.29% |
Total | 42 | 100.00% | 7 | 100.00% |
static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long address)
{
return get_pointer_table();
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds (pre-git) | 13 | 61.90% | 1 | 50.00% |
Roman Zippel | 8 | 38.10% | 1 | 50.00% |
Total | 21 | 100.00% | 2 | 100.00% |
static inline int pmd_free(struct mm_struct *mm, pmd_t *pmd)
{
return free_pointer_table(pmd);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds (pre-git) | 11 | 50.00% | 1 | 33.33% |
Roman Zippel | 6 | 27.27% | 1 | 33.33% |
Benjamin Herrenschmidt | 5 | 22.73% | 1 | 33.33% |
Total | 22 | 100.00% | 3 | 100.00% |
static inline int __pmd_free_tlb(struct mmu_gather *tlb, pmd_t *pmd,
unsigned long address)
{
return free_pointer_table(pmd);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds (pre-git) | 11 | 42.31% | 1 | 20.00% |
Roman Zippel | 8 | 30.77% | 1 | 20.00% |
Benjamin Herrenschmidt | 4 | 15.38% | 1 | 20.00% |
Andrew Morton | 3 | 11.54% | 2 | 40.00% |
Total | 26 | 100.00% | 5 | 100.00% |
static inline void pgd_free(struct mm_struct *mm, pgd_t *pgd)
{
pmd_free(mm, (pmd_t *)pgd);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds (pre-git) | 18 | 66.67% | 1 | 33.33% |
Benjamin Herrenschmidt | 7 | 25.93% | 1 | 33.33% |
Roman Zippel | 2 | 7.41% | 1 | 33.33% |
Total | 27 | 100.00% | 3 | 100.00% |
static inline pgd_t *pgd_alloc(struct mm_struct *mm)
{
return (pgd_t *)get_pointer_table();
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds (pre-git) | 15 | 71.43% | 1 | 33.33% |
Linus Torvalds | 4 | 19.05% | 1 | 33.33% |
Roman Zippel | 2 | 9.52% | 1 | 33.33% |
Total | 21 | 100.00% | 3 | 100.00% |
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 |
Roman Zippel | 23 | 85.19% | 1 | 50.00% |
Linus Torvalds | 4 | 14.81% | 1 | 50.00% |
Total | 27 | 100.00% | 2 | 100.00% |
static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmd, pgtable_t page)
{
pmd_set(pmd, page_address(page));
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Roman Zippel | 24 | 82.76% | 1 | 25.00% |
Linus Torvalds (pre-git) | 2 | 6.90% | 1 | 25.00% |
Linus Torvalds | 2 | 6.90% | 1 | 25.00% |
Martin Schwidefsky | 1 | 3.45% | 1 | 25.00% |
Total | 29 | 100.00% | 4 | 100.00% |
#define pmd_pgtable(pmd) pmd_page(pmd)
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 |
Roman Zippel | 21 | 77.78% | 1 | 50.00% |
Linus Torvalds (pre-git) | 6 | 22.22% | 1 | 50.00% |
Total | 27 | 100.00% | 2 | 100.00% |
#endif /* _MOTOROLA_PGALLOC_H */
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Roman Zippel | 194 | 38.88% | 2 | 12.50% |
Linus Torvalds (pre-git) | 135 | 27.05% | 1 | 6.25% |
Linus Torvalds | 79 | 15.83% | 2 | 12.50% |
Benjamin Herrenschmidt | 29 | 5.81% | 2 | 12.50% |
Kirill A. Shutemov | 26 | 5.21% | 1 | 6.25% |
Martin Schwidefsky | 21 | 4.21% | 1 | 6.25% |
Andrew Morton | 9 | 1.80% | 4 | 25.00% |
Geert Uytterhoeven | 3 | 0.60% | 1 | 6.25% |
Christoph Lameter | 2 | 0.40% | 1 | 6.25% |
Greg Kroah-Hartman | 1 | 0.20% | 1 | 6.25% |
Total | 499 | 100.00% | 16 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.