Release 4.11 arch/m68k/include/asm/motorola_pgalloc.h
#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 |
Roman Zippel | 21 | 50.00% | 1 | 16.67% |
Linus Torvalds (pre-git) | 8 | 19.05% | 1 | 16.67% |
Martin Schwidefsky | 6 | 14.29% | 1 | 16.67% |
Benjamin Herrenschmidt | 4 | 9.52% | 1 | 16.67% |
Andrew Morton | 3 | 7.14% | 2 | 33.33% |
Total | 42 | 100.00% | 6 | 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 |
Roman Zippel | 15 | 71.43% | 1 | 50.00% |
Linus Torvalds (pre-git) | 6 | 28.57% | 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) | 15 | 68.18% | 1 | 33.33% |
Benjamin Herrenschmidt | 5 | 22.73% | 1 | 33.33% |
Roman Zippel | 2 | 9.09% | 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) | 12 | 46.15% | 1 | 20.00% |
Roman Zippel | 7 | 26.92% | 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) | 10 | 37.04% | 1 | 33.33% |
Roman Zippel | 10 | 37.04% | 1 | 33.33% |
Benjamin Herrenschmidt | 7 | 25.93% | 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 |
Roman Zippel | 12 | 57.14% | 1 | 50.00% |
Linus Torvalds (pre-git) | 9 | 42.86% | 1 | 50.00% |
Total | 21 | 100.00% | 2 | 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 | 14 | 51.85% | 1 | 50.00% |
Linus Torvalds (pre-git) | 13 | 48.15% | 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 | 16 | 55.17% | 1 | 33.33% |
Linus Torvalds (pre-git) | 12 | 41.38% | 1 | 33.33% |
Martin Schwidefsky | 1 | 3.45% | 1 | 33.33% |
Total | 29 | 100.00% | 3 | 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 | 15 | 55.56% | 1 | 33.33% |
Linus Torvalds (pre-git) | 8 | 29.63% | 1 | 33.33% |
Linus Torvalds | 4 | 14.81% | 1 | 33.33% |
Total | 27 | 100.00% | 3 | 100.00% |
#endif /* _MOTOROLA_PGALLOC_H */
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Roman Zippel | 200 | 40.16% | 2 | 13.33% |
Linus Torvalds (pre-git) | 137 | 27.51% | 1 | 6.67% |
Linus Torvalds | 71 | 14.26% | 2 | 13.33% |
Benjamin Herrenschmidt | 29 | 5.82% | 2 | 13.33% |
Kirill A. Shutemov | 26 | 5.22% | 1 | 6.67% |
Martin Schwidefsky | 21 | 4.22% | 1 | 6.67% |
Andrew Morton | 9 | 1.81% | 4 | 26.67% |
Geert Uytterhoeven | 3 | 0.60% | 1 | 6.67% |
Christoph Lameter | 2 | 0.40% | 1 | 6.67% |
Total | 498 | 100.00% | 15 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.