diff options
| author | David S. Miller <davem@davemloft.net> | 2014-01-14 17:37:09 -0500 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2014-01-14 17:42:42 -0500 |
| commit | 0a379e21c503b2ff66b44d588df9f231e9b0b9ca (patch) | |
| tree | 22b875fcf4b67fcd007726f00c5fc1748ce985d0 /arch/parisc/kernel | |
| parent | a49da8811e71c5355b52c65ee32976741d5834cd (diff) | |
| parent | fdc3452cd2c7b2bfe0f378f92123f4f9a98fa2bd (diff) | |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Diffstat (limited to 'arch/parisc/kernel')
| -rw-r--r-- | arch/parisc/kernel/cache.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/arch/parisc/kernel/cache.c b/arch/parisc/kernel/cache.c index c035673209f7..a72545554a31 100644 --- a/arch/parisc/kernel/cache.c +++ b/arch/parisc/kernel/cache.c | |||
| @@ -388,41 +388,6 @@ void flush_kernel_dcache_page_addr(void *addr) | |||
| 388 | } | 388 | } |
| 389 | EXPORT_SYMBOL(flush_kernel_dcache_page_addr); | 389 | EXPORT_SYMBOL(flush_kernel_dcache_page_addr); |
| 390 | 390 | ||
| 391 | void clear_user_page(void *vto, unsigned long vaddr, struct page *page) | ||
| 392 | { | ||
| 393 | clear_page_asm(vto); | ||
| 394 | if (!parisc_requires_coherency()) | ||
| 395 | flush_kernel_dcache_page_asm(vto); | ||
| 396 | } | ||
| 397 | EXPORT_SYMBOL(clear_user_page); | ||
| 398 | |||
| 399 | void copy_user_page(void *vto, void *vfrom, unsigned long vaddr, | ||
| 400 | struct page *pg) | ||
| 401 | { | ||
| 402 | /* Copy using kernel mapping. No coherency is needed | ||
| 403 | (all in kmap/kunmap) on machines that don't support | ||
| 404 | non-equivalent aliasing. However, the `from' page | ||
| 405 | needs to be flushed before it can be accessed through | ||
| 406 | the kernel mapping. */ | ||
| 407 | preempt_disable(); | ||
| 408 | flush_dcache_page_asm(__pa(vfrom), vaddr); | ||
| 409 | preempt_enable(); | ||
| 410 | copy_page_asm(vto, vfrom); | ||
| 411 | if (!parisc_requires_coherency()) | ||
| 412 | flush_kernel_dcache_page_asm(vto); | ||
| 413 | } | ||
| 414 | EXPORT_SYMBOL(copy_user_page); | ||
| 415 | |||
| 416 | #ifdef CONFIG_PA8X00 | ||
| 417 | |||
| 418 | void kunmap_parisc(void *addr) | ||
| 419 | { | ||
| 420 | if (parisc_requires_coherency()) | ||
| 421 | flush_kernel_dcache_page_addr(addr); | ||
| 422 | } | ||
| 423 | EXPORT_SYMBOL(kunmap_parisc); | ||
| 424 | #endif | ||
| 425 | |||
| 426 | void purge_tlb_entries(struct mm_struct *mm, unsigned long addr) | 391 | void purge_tlb_entries(struct mm_struct *mm, unsigned long addr) |
| 427 | { | 392 | { |
| 428 | unsigned long flags; | 393 | unsigned long flags; |
