Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 201385
b: refs/heads/master
c: 831e804
h: refs/heads/master
i:
  201383: a6b9d3d
v: v3
  • Loading branch information
Gary King authored and Russell King committed Jul 30, 2010
1 parent fc88b49 commit 4395a27
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 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: b92b3612134faff171981fad4f0adb33f485e02e
refs/heads/master: 831e8047eb2af310184a9d4d9e749f3de119ae39
13 changes: 8 additions & 5 deletions trunk/arch/arm/mm/highmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,19 +163,22 @@ static DEFINE_PER_CPU(int, kmap_high_l1_vipt_depth);

void *kmap_high_l1_vipt(struct page *page, pte_t *saved_pte)
{
unsigned int idx, cpu = smp_processor_id();
int *depth = &per_cpu(kmap_high_l1_vipt_depth, cpu);
unsigned int idx, cpu;
int *depth;
unsigned long vaddr, flags;
pte_t pte, *ptep;

if (!in_interrupt())
preempt_disable();

cpu = smp_processor_id();
depth = &per_cpu(kmap_high_l1_vipt_depth, cpu);

idx = KM_L1_CACHE + KM_TYPE_NR * cpu;
vaddr = __fix_to_virt(FIX_KMAP_BEGIN + idx);
ptep = TOP_PTE(vaddr);
pte = mk_pte(page, kmap_prot);

if (!in_interrupt())
preempt_disable();

raw_local_irq_save(flags);
(*depth)++;
if (pte_val(*ptep) == pte_val(pte)) {
Expand Down

0 comments on commit 4395a27

Please sign in to comment.