Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 243438
b: refs/heads/master
c: d25d3b4
h: refs/heads/master
v: v3
  • Loading branch information
Will Deacon authored and Russell King committed Mar 26, 2011
1 parent 1f0d6ad commit bd4179e
Show file tree
Hide file tree
Showing 2 changed files with 3 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: fb4fe87d79511398a68000d2100c825f54b51652
refs/heads/master: d25d3b4c4d0e27975ee659a64b6d29f02fdbfde4
2 changes: 2 additions & 0 deletions trunk/arch/arm/kernel/perf_event_v7.c
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,7 @@ static inline unsigned long armv7_pmnc_read(void)
static inline void armv7_pmnc_write(unsigned long val)
{
val &= ARMV7_PMNC_MASK;
isb();
asm volatile("mcr p15, 0, %0, c9, c12, 0" : : "r"(val));
}

Expand Down Expand Up @@ -502,6 +503,7 @@ static inline int armv7_pmnc_select_counter(unsigned int idx)

val = (idx - ARMV7_EVENT_CNT_TO_CNTx) & ARMV7_SELECT_MASK;
asm volatile("mcr p15, 0, %0, c9, c12, 5" : : "r" (val));
isb();

return idx;
}
Expand Down

0 comments on commit bd4179e

Please sign in to comment.