Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 191359
b: refs/heads/master
c: 1ff3d7d
h: refs/heads/master
i:
  191357: e772e6f
  191355: 60f697b
  191351: ead1359
  191343: 24e299f
  191327: cfb369d
  191295: 0d5e83c
  191231: 296ac94
v: v3
  • Loading branch information
Cyrill Gorcunov authored and Ingo Molnar committed May 15, 2010
1 parent f1af9e5 commit e5ddf3a
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: 5d2be7cb198a0a6bc6088d3806fb7261b184ad89
refs/heads/master: 1ff3d7d79204612ebe2e611d2592f8898908ca00
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 e5ddf3a

Please sign in to comment.