]> Pileus Git - ~andy/linux/commit
[IA64] fix perfmon context load
authorstephane.eranian@hp.com <stephane.eranian@hp.com>
Thu, 28 Jul 2005 12:18:00 +0000 (05:18 -0700)
committerTony Luck <tony.luck@intel.com>
Wed, 10 Aug 2005 23:21:58 +0000 (16:21 -0700)
commit6bf11e8c708f0e512ed733fc65a50770c5bc7b54
treeefa54f2f19580f330ae71c3a9476d2261b172142
parentbc68552faad0e134eb22281343d5ae5a4873fa80
[IA64] fix perfmon context load

The PFM_LOAD_CONTEXT may fail silently and cause a session
to remain reserved even though it should not. This can happen
when the commands succeeds in reserving the session but fails
when it actually tries to attach to the load_pid. In that case,
the command has failed but will return 0. More importantly,
the session will remain reserved. This patch fixes the problem.

Signed-off-by: <stephane.eranian@hp.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/kernel/perfmon.c