Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 367224
b: refs/heads/master
c: 1fb4dc5
h: refs/heads/master
v: v3
  • Loading branch information
James Hogan committed Mar 15, 2013
1 parent 7506dbb commit a98c946
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 9344de1b1c64b2217f3b15508266deff2a8d6c84
refs/heads/master: 1fb4dc5c39af941d3abc597337e0ea776bfce0f2
7 changes: 2 additions & 5 deletions trunk/arch/metag/kernel/perf/perf_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -617,9 +617,7 @@ static void metag_pmu_enable_counter(struct hw_perf_event *event, int idx)
WARN_ONCE((config != 0x100),
"invalid configuration (%d) for counter (%d)\n",
config, idx);

/* Reset the cycle count */
__core_reg_set(TXTACTCYC, 0);
local64_set(&event->prev_count, __core_reg_get(TXTACTCYC));
goto unlock;
}

Expand Down Expand Up @@ -708,9 +706,8 @@ static u64 metag_pmu_read_counter(int idx)
{
u32 tmp = 0;

/* The act of reading the cycle counter also clears it */
if (METAG_INST_COUNTER == idx) {
__core_reg_swap(TXTACTCYC, tmp);
tmp = __core_reg_get(TXTACTCYC);
goto out;
}

Expand Down

0 comments on commit a98c946

Please sign in to comment.