Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 204680
b: refs/heads/master
c: f7136c5
h: refs/heads/master
v: v3
  • Loading branch information
K.Prasad authored and Paul Mackerras committed Jun 22, 2010
1 parent 93f070d commit b023370
Show file tree
Hide file tree
Showing 2 changed files with 13 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: 0016a4cf5582415849fafbf9f019dd9530824789
refs/heads/master: f7136c5150c29846d7a1d09109449d96b2f63445
12 changes: 12 additions & 0 deletions trunk/kernel/hw_breakpoint.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,17 @@ toggle_bp_slot(struct perf_event *bp, bool enable, enum bp_type_idx type,
per_cpu(nr_cpu_bp_pinned[type], bp->cpu) -= weight;
}

/*
* Function to perform processor-specific cleanup during unregistration
*/
__weak void arch_unregister_hw_breakpoint(struct perf_event *bp)
{
/*
* A weak stub function here for those archs that don't define
* it inside arch/.../kernel/hw_breakpoint.c
*/
}

/*
* Contraints to check before allowing this new breakpoint counter:
*
Expand Down Expand Up @@ -339,6 +350,7 @@ void release_bp_slot(struct perf_event *bp)
{
mutex_lock(&nr_bp_mutex);

arch_unregister_hw_breakpoint(bp);
__release_bp_slot(bp);

mutex_unlock(&nr_bp_mutex);
Expand Down

0 comments on commit b023370

Please sign in to comment.