]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
oprofile/x86: return -EBUSY if counters are already reserved
authorRobert Richter <robert.richter@amd.com>
Fri, 26 Feb 2010 16:20:55 +0000 (17:20 +0100)
committerRobert Richter <robert.richter@amd.com>
Tue, 4 May 2010 09:35:28 +0000 (11:35 +0200)
commit8617f98c001d00b176422d707e6a67b88bcd7e0d
treee857f11dcbc6e650f4d0c30839099358c814e537
parent83300ce0df6b72e156b386457aa0f0902b8c0a98
oprofile/x86: return -EBUSY if counters are already reserved

In case a counter is already reserved by the watchdog or perf_event
subsystem, oprofile ignored this counters silently. This case is
handled now and oprofile_setup() now reports an error.

Signed-off-by: Robert Richter <robert.richter@amd.com>
arch/x86/oprofile/nmi_int.c
arch/x86/oprofile/op_model_amd.c
arch/x86/oprofile/op_model_p4.c
arch/x86/oprofile/op_model_ppro.c
arch/x86/oprofile/op_x86_model.h