aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Luck <tony.luck@intel.com>2005-08-11 09:43:50 -0700
committerTony Luck <tony.luck@intel.com>2005-08-11 09:43:50 -0700
commit691241315116b962f2161e6190f1678cc65bbe26 (patch)
tree2687b0820416b0ebd3c8e45b7bc66d4442b181ed
parent1c53e4357ec72d6114c58d20c26d00a904f55da3 (diff)
parent6bf11e8c708f0e512ed733fc65a50770c5bc7b54 (diff)
pull perfmon context load into release tree
-rw-r--r--arch/ia64/kernel/perfmon.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/ia64/kernel/perfmon.c b/arch/ia64/kernel/perfmon.c
index b8ebb8e427e..f1201ac8a11 100644
--- a/arch/ia64/kernel/perfmon.c
+++ b/arch/ia64/kernel/perfmon.c
@@ -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));