Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 169802
b: refs/heads/master
c: 11e6635
h: refs/heads/master
v: v3
  • Loading branch information
Andrew Morton authored and Ingo Molnar committed Nov 26, 2009
1 parent 9da1807 commit 9cebdd3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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: 2c31b7958fd21df9fa04e5c36cda0f063ac70b27
refs/heads/master: 11e6635763bdc0e24b39a38876574660755acffc
12 changes: 6 additions & 6 deletions trunk/kernel/hw_breakpoint.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ static void toggle_bp_task_slot(struct task_struct *tsk, int cpu, bool enable)
int count = 0;
struct perf_event *bp;
struct perf_event_context *ctx = tsk->perf_event_ctxp;
unsigned int *task_bp_pinned;
unsigned int *tsk_pinned;
struct list_head *list;
unsigned long flags;

Expand All @@ -146,15 +146,15 @@ static void toggle_bp_task_slot(struct task_struct *tsk, int cpu, bool enable)
if (WARN_ONCE(count < 0, "No breakpoint counter found in the counter list"))
return;

task_bp_pinned = per_cpu(task_bp_pinned, cpu);
tsk_pinned = per_cpu(task_bp_pinned, cpu);
if (enable) {
task_bp_pinned[count]++;
tsk_pinned[count]++;
if (count > 0)
task_bp_pinned[count-1]--;
tsk_pinned[count-1]--;
} else {
task_bp_pinned[count]--;
tsk_pinned[count]--;
if (count > 0)
task_bp_pinned[count-1]++;
tsk_pinned[count-1]++;
}
}

Expand Down

0 comments on commit 9cebdd3

Please sign in to comment.