Commit 9043f7e9 authored by Atsushi Nemoto's avatar Atsushi Nemoto Committed by Ralf Baechle
Browse files

Sync c-tx39.c with c-r4k.c.

tx39_flush_cache_range() does nothing if !cpu_has_dc_aliases.  It should
flush d-cache and invalidate i-cache since the TX39(H2) has separate I/D
Signed-off-by: default avatarAtsushi Nemoto <>
Signed-off-by: default avatarRalf Baechle <>
parent 9d58f302
......@@ -167,15 +167,16 @@ static void tx39_flush_cache_mm(struct mm_struct *mm)
static void tx39_flush_cache_range(struct vm_area_struct *vma,
unsigned long start, unsigned long end)
struct mm_struct *mm = vma->vm_mm;
int exec;
if (!cpu_has_dc_aliases)
if (!(cpu_context(smp_processor_id(), vma->vm_mm)))
if (cpu_context(smp_processor_id(), mm) != 0) {
exec = vma->vm_flags & VM_EXEC;
if (cpu_has_dc_aliases || exec)
if (exec)
static void tx39_flush_cache_page(struct vm_area_struct *vma, unsigned long page, unsigned long pfn)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment