Skip to content

Commit

Permalink
pull perfmon context load into release tree
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Luck committed Aug 11, 2005
2 parents 1c53e43 + 6bf11e8 commit 6912413
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/ia64/kernel/perfmon.c
Original file line number Diff line number Diff line change
Expand Up @@ -4312,6 +4312,7 @@ pfm_context_load(pfm_context_t *ctx, void *arg, int count, struct pt_regs *regs)
DPRINT(("before cmpxchg() old_ctx=%p new_ctx=%p\n",
thread->pfm_context, ctx));

ret = -EBUSY;
old = ia64_cmpxchg(acq, &thread->pfm_context, NULL, ctx, sizeof(pfm_context_t *));
if (old != NULL) {
DPRINT(("load_pid [%d] already has a context\n", req->load_pid));
Expand Down

0 comments on commit 6912413

Please sign in to comment.