Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 64855
b: refs/heads/master
c: b868868
h: refs/heads/master
i:
  64853: c8d5837
  64851: b16bc8c
  64847: b32dbde
v: v3
  • Loading branch information
Ralf Baechle committed Sep 11, 2007
1 parent 9754d58 commit cd0c61f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: 01e9943c79ad4edb2c0b76c99029e34d704223ce
refs/heads/master: b868868ae0f7272228c95cc760338ffe35bb739d
5 changes: 4 additions & 1 deletion trunk/arch/mips/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* Kevin D. Kissell, kevink@mips.com and Carsten Langgaard, carstenl@mips.com
* Copyright (C) 2000 MIPS Technologies, Inc. All rights reserved.
*/
#include <linux/bug.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/signal.h>
Expand Down Expand Up @@ -132,6 +133,8 @@ void *kmap_coherent(struct page *page, unsigned long addr)
pte_t pte;
int tlbidx;

BUG_ON(Page_dcache_dirty(page));

inc_preempt_count();
idx = (addr >> PAGE_SHIFT) & (FIX_N_COLOURS - 1);
#ifdef CONFIG_MIPS_MT_SMTC
Expand Down Expand Up @@ -208,7 +211,7 @@ void copy_user_highpage(struct page *to, struct page *from,
void *vfrom, *vto;

vto = kmap_atomic(to, KM_USER1);
if (cpu_has_dc_aliases) {
if (cpu_has_dc_aliases && !Page_dcache_dirty(from)) {
vfrom = kmap_coherent(from, vaddr);
copy_page(vto, vfrom);
kunmap_coherent();
Expand Down

0 comments on commit cd0c61f

Please sign in to comment.