Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 288320
b: refs/heads/master
c: 99c1745
h: refs/heads/master
v: v3
  • Loading branch information
Will Deacon authored and Russell King committed Mar 7, 2012
1 parent 7f8245b commit a46280a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5727347180ebc6b4a866fcbe00dcb39cc03acb37
refs/heads/master: 99c1745b9c76910e195889044f914b4898b7c9a5
5 changes: 5 additions & 0 deletions trunk/arch/arm/kernel/perf_event_v7.c
Original file line number Diff line number Diff line change
Expand Up @@ -809,6 +809,11 @@ static inline int armv7_pmnc_disable_intens(int idx)

counter = ARMV7_IDX_TO_COUNTER(idx);
asm volatile("mcr p15, 0, %0, c9, c14, 2" : : "r" (BIT(counter)));
isb();
/* Clear the overflow flag in case an interrupt is pending. */
asm volatile("mcr p15, 0, %0, c9, c12, 3" : : "r" (BIT(counter)));
isb();

return idx;
}

Expand Down

0 comments on commit a46280a

Please sign in to comment.