Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 163353
b: refs/heads/master
c: b5eb10a
h: refs/heads/master
i:
  163351: b87e29d
v: v3
  • Loading branch information
Paul Mundt committed Aug 4, 2009
1 parent 411369e commit 801cf2d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 222db3e5f21fca563f5f692e000afcc01cb4395c
refs/heads/master: b5eb10ae901fa797c19accb684825f0e36ecbe0f
8 changes: 4 additions & 4 deletions trunk/arch/sh/mm/pg-mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ static void *kmap_coherent(struct page *page, unsigned long addr)
return (void *)vaddr;
}

static inline void kunmap_coherent(struct page *page)
static inline void kunmap_coherent(void)
{
dec_preempt_count();
preempt_check_resched();
Expand All @@ -70,7 +70,7 @@ void copy_to_user_page(struct vm_area_struct *vma, struct page *page,
!test_bit(PG_dcache_dirty, &page->flags)) {
void *vto = kmap_coherent(page, vaddr) + (vaddr & ~PAGE_MASK);
memcpy(vto, src, len);
kunmap_coherent(vto);
kunmap_coherent();
} else {
memcpy(dst, src, len);
if (boot_cpu_data.dcache.n_aliases)
Expand All @@ -89,7 +89,7 @@ void copy_from_user_page(struct vm_area_struct *vma, struct page *page,
!test_bit(PG_dcache_dirty, &page->flags)) {
void *vfrom = kmap_coherent(page, vaddr) + (vaddr & ~PAGE_MASK);
memcpy(dst, vfrom, len);
kunmap_coherent(vfrom);
kunmap_coherent();
} else {
memcpy(dst, src, len);
if (boot_cpu_data.dcache.n_aliases)
Expand All @@ -108,7 +108,7 @@ void copy_user_highpage(struct page *to, struct page *from,
!test_bit(PG_dcache_dirty, &from->flags)) {
vfrom = kmap_coherent(from, vaddr);
copy_page(vto, vfrom);
kunmap_coherent(vfrom);
kunmap_coherent();
} else {
vfrom = kmap_atomic(from, KM_USER0);
copy_page(vto, vfrom);
Expand Down

0 comments on commit 801cf2d

Please sign in to comment.