Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 191364
b: refs/heads/master
c: 7ebaa28
h: refs/heads/master
v: v3
  • Loading branch information
Ingo Molnar committed May 15, 2010
1 parent 20248da commit 96f8f41
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 3e1bbdc3a721f4b1ed44f4554402a8dbc60fa97f
refs/heads/master: 7ebaa2838a751125c113072486334d7b4e63f9ad
8 changes: 4 additions & 4 deletions trunk/arch/x86/kernel/cpu/perf_event_p4.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
struct p4_event_bind {
unsigned int opcode; /* Event code and ESCR selector */
unsigned int escr_msr[2]; /* ESCR MSR for this event */
unsigned char cntr[2][P4_CNTR_LIMIT]; /* counter index (offset), -1 on abscence */
char cntr[2][P4_CNTR_LIMIT]; /* counter index (offset), -1 on abscence */
};

struct p4_cache_event_bind {
Expand Down Expand Up @@ -747,11 +747,11 @@ static int p4_get_escr_idx(unsigned int addr)
static int p4_next_cntr(int thread, unsigned long *used_mask,
struct p4_event_bind *bind)
{
int i = 0, j;
int i, j;

for (i = 0; i < P4_CNTR_LIMIT; i++) {
j = bind->cntr[thread][i++];
if (j == -1 || !test_bit(j, used_mask))
j = bind->cntr[thread][i];
if (j != -1 && !test_bit(j, used_mask))
return j;
}

Expand Down

0 comments on commit 96f8f41

Please sign in to comment.