]> err.no Git - linux-2.6/commit
[IA64] another perfmon fix (take2)
authorstephane eranian <eranian@hpl.hp.com>
Mon, 18 Apr 2005 18:42:00 +0000 (11:42 -0700)
committerTony Luck <tony.luck@intel.com>
Tue, 3 May 2005 22:47:58 +0000 (15:47 -0700)
commita5a70b75d93b26e14c0c5e759099d602a480b9e2
tree4cd2f4f47cccb8f59e54433ab642e187cbf5e291
parent8df5a500a3e97f7811cdce0f553ca1917ccd4220
[IA64] another perfmon fix (take2)

- pfm_context_load(): change return value from EINVAL to EBUSY
  when context is already loaded.

- pfm_check_task_state(): pass test if context state is MASKED.
  It is safe to give access on PFM_CTX_MASKED because the PMU
  state (PMD) is stable and saved in software state.
  This helps multiplexing programs such as the example given
  in libpfm-3.1.

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