Release 4.14 arch/frv/mm/highmem.c
/* highmem.c: arch-specific highmem stuff
*
* Copyright (C) 2004 Red Hat, Inc. All Rights Reserved.
* Written by David Howells (dhowells@redhat.com)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version
* 2 of the License, or (at your option) any later version.
*/
#include <linux/highmem.h>
#include <linux/module.h>
void *kmap(struct page *page)
{
might_sleep();
if (!PageHighMem(page))
return page_address(page);
return kmap_high(page);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
David Howells | 30 | 88.24% | 1 | 50.00% |
Dave Hansen | 4 | 11.76% | 1 | 50.00% |
Total | 34 | 100.00% | 2 | 100.00% |
EXPORT_SYMBOL(kmap);
void kunmap(struct page *page)
{
if (in_interrupt())
BUG();
if (!PageHighMem(page))
return;
kunmap_high(page);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
David Howells | 28 | 87.50% | 1 | 50.00% |
Dave Hansen | 4 | 12.50% | 1 | 50.00% |
Total | 32 | 100.00% | 2 | 100.00% |
EXPORT_SYMBOL(kunmap);
void *kmap_atomic(struct page *page)
{
unsigned long paddr;
int type;
preempt_disable();
pagefault_disable();
type = kmap_atomic_idx_push();
paddr = page_to_phys(page);
switch (type) {
/*
* The first 4 primary maps are reserved for architecture code
*/
case 0: return __kmap_atomic_primary(0, paddr, 6);
case 1: return __kmap_atomic_primary(0, paddr, 7);
case 2: return __kmap_atomic_primary(0, paddr, 8);
case 3: return __kmap_atomic_primary(0, paddr, 9);
case 4: return __kmap_atomic_primary(0, paddr, 10);
case 5 ... 5 + NR_TLB_LINES - 1:
return __kmap_atomic_secondary(type - 5, paddr);
default:
BUG();
return NULL;
}
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Peter Zijlstra | 125 | 93.28% | 1 | 25.00% |
Américo Wang | 6 | 4.48% | 2 | 50.00% |
David Hildenbrand | 3 | 2.24% | 1 | 25.00% |
Total | 134 | 100.00% | 4 | 100.00% |
EXPORT_SYMBOL(kmap_atomic);
void __kunmap_atomic(void *kvaddr)
{
int type = kmap_atomic_idx();
switch (type) {
case 0: __kunmap_atomic_primary(0, 6); break;
case 1: __kunmap_atomic_primary(0, 7); break;
case 2: __kunmap_atomic_primary(0, 8); break;
case 3: __kunmap_atomic_primary(0, 9); break;
case 4: __kunmap_atomic_primary(0, 10); break;
case 5 ... 5 + NR_TLB_LINES - 1:
__kunmap_atomic_secondary(type - 5, kvaddr);
break;
default:
BUG();
}
kmap_atomic_idx_pop();
pagefault_enable();
preempt_enable();
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Peter Zijlstra | 100 | 92.59% | 2 | 50.00% |
Américo Wang | 5 | 4.63% | 1 | 25.00% |
David Hildenbrand | 3 | 2.78% | 1 | 25.00% |
Total | 108 | 100.00% | 4 | 100.00% |
EXPORT_SYMBOL(__kunmap_atomic);
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Peter Zijlstra | 234 | 69.85% | 2 | 25.00% |
David Howells | 75 | 22.39% | 2 | 25.00% |
Américo Wang | 12 | 3.58% | 2 | 25.00% |
Dave Hansen | 8 | 2.39% | 1 | 12.50% |
David Hildenbrand | 6 | 1.79% | 1 | 12.50% |
Total | 335 | 100.00% | 8 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.