Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 71701
b: refs/heads/master
c: 124d395
h: refs/heads/master
i:
  71699: 021acf6
v: v3
  • Loading branch information
Stephane Eranian authored and Thomas Gleixner committed Oct 19, 2007
1 parent 190ae17 commit c90ccad
Show file tree
Hide file tree
Showing 2 changed files with 13 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: 71b31233a215be27e2efbcc0e739cbebb0bde078
refs/heads/master: 124d395fd05efb65d00ca23c7bcc86c272bd8813
16 changes: 12 additions & 4 deletions trunk/arch/x86/kernel/cpu/perfctr-watchdog.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ int reserve_perfctr_nmi(unsigned int msr)
unsigned int counter;

counter = nmi_perfctr_msr_to_bit(msr);
BUG_ON(counter > NMI_MAX_COUNTER_BITS);
/* register not managed by the allocator? */
if (counter > NMI_MAX_COUNTER_BITS)
return 1;

if (!test_and_set_bit(counter, perfctr_nmi_owner))
return 1;
Expand All @@ -132,7 +134,9 @@ void release_perfctr_nmi(unsigned int msr)
unsigned int counter;

counter = nmi_perfctr_msr_to_bit(msr);
BUG_ON(counter > NMI_MAX_COUNTER_BITS);
/* register not managed by the allocator? */
if (counter > NMI_MAX_COUNTER_BITS)
return;

clear_bit(counter, perfctr_nmi_owner);
}
Expand All @@ -142,7 +146,9 @@ int reserve_evntsel_nmi(unsigned int msr)
unsigned int counter;

counter = nmi_evntsel_msr_to_bit(msr);
BUG_ON(counter > NMI_MAX_COUNTER_BITS);
/* register not managed by the allocator? */
if (counter > NMI_MAX_COUNTER_BITS)
return 1;

if (!test_and_set_bit(counter, evntsel_nmi_owner))
return 1;
Expand All @@ -154,7 +160,9 @@ void release_evntsel_nmi(unsigned int msr)
unsigned int counter;

counter = nmi_evntsel_msr_to_bit(msr);
BUG_ON(counter > NMI_MAX_COUNTER_BITS);
/* register not managed by the allocator? */
if (counter > NMI_MAX_COUNTER_BITS)
return;

clear_bit(counter, evntsel_nmi_owner);
}
Expand Down

0 comments on commit c90ccad

Please sign in to comment.