~ubuntu-branches/ubuntu/quantal/linux-linaro-mx51/quantal

« back to all changes in this revision

Viewing changes to arch/tile/kernel/tlb.c

  • Committer: Package Import Robot
  • Author(s): John Rigby, John Rigby
  • Date: 2011-09-26 10:44:23 UTC
  • Revision ID: package-import@ubuntu.com-20110926104423-3o58a3c1bj7x00rs
Tags: 3.0.0-1007.9
[ John Rigby ]

Enable crypto modules and remove crypto-modules from
exclude-module files
LP: #826021

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
{
35
35
        HV_Remote_ASID asids[NR_CPUS];
36
36
        int i = 0, cpu;
37
 
        for_each_cpu(cpu, &mm->cpu_vm_mask) {
 
37
        for_each_cpu(cpu, mm_cpumask(mm)) {
38
38
                HV_Remote_ASID *asid = &asids[i++];
39
39
                asid->y = cpu / smp_topology.width;
40
40
                asid->x = cpu % smp_topology.width;
41
41
                asid->asid = per_cpu(current_asid, cpu);
42
42
        }
43
 
        flush_remote(0, HV_FLUSH_EVICT_L1I, &mm->cpu_vm_mask,
 
43
        flush_remote(0, HV_FLUSH_EVICT_L1I, mm_cpumask(mm),
44
44
                     0, 0, 0, NULL, asids, i);
45
45
}
46
46
 
54
54
{
55
55
        unsigned long size = hv_page_size(vma);
56
56
        int cache = (vma->vm_flags & VM_EXEC) ? HV_FLUSH_EVICT_L1I : 0;
57
 
        flush_remote(0, cache, &mm->cpu_vm_mask,
58
 
                     va, size, size, &mm->cpu_vm_mask, NULL, 0);
 
57
        flush_remote(0, cache, mm_cpumask(mm),
 
58
                     va, size, size, mm_cpumask(mm), NULL, 0);
59
59
}
60
60
 
61
61
void flush_tlb_page(const struct vm_area_struct *vma, unsigned long va)
70
70
        unsigned long size = hv_page_size(vma);
71
71
        struct mm_struct *mm = vma->vm_mm;
72
72
        int cache = (vma->vm_flags & VM_EXEC) ? HV_FLUSH_EVICT_L1I : 0;
73
 
        flush_remote(0, cache, &mm->cpu_vm_mask, start, end - start, size,
74
 
                     &mm->cpu_vm_mask, NULL, 0);
 
73
        flush_remote(0, cache, mm_cpumask(mm), start, end - start, size,
 
74
                     mm_cpumask(mm), NULL, 0);
75
75
}
76
76
 
77
77
void flush_tlb_all(void)