]> bbs.cooldavid.org Git - net-next-2.6.git/commit
[IA64] perfmon: make pfm_sysctl a global, and other cleanup
authorStephane Eranian <eranian@hpl.hp.com>
Mon, 25 Apr 2005 20:08:30 +0000 (13:08 -0700)
committerTony Luck <tony.luck@intel.com>
Mon, 25 Apr 2005 20:08:30 +0000 (13:08 -0700)
commit4944930ab748942e41ea4dc313fcb0946aee3f17
tree5d23e420c0d7f4387237028ca2dca1ec97f59861
parent658b32cad9ae087bd34f35a925fd75b76d663d4e
[IA64] perfmon: make pfm_sysctl a global, and other cleanup

- make pfm_sysctl a global such that it is possible
  to enable/disable debug printk in sampling formats
  using PFM_DEBUG.

- remove unused pfm_debug_var variable

- fix a bug in pfm_handle_work where an BUG_ON() could
  be triggered. There is a path where pfm_handle_work()
  can be called with interrupts enabled, i.e., when
  TIF_NEED_RESCHED is set. The fix correct the masking
  and unmasking of interrupts in pfm_handle_work() such
  that we restore the interrupt mask as it was upon entry.

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