oprofile/x86: stop disabled counters in nmi handler
authorRobert Richter <robert.richter@amd.com>
Mon, 3 May 2010 12:41:22 +0000 (14:41 +0200)
committerRobert Richter <robert.richter@amd.com>
Tue, 4 May 2010 09:39:38 +0000 (11:39 +0200)
This patch adds checks to the nmi handler. Now samples are only
generated and counters reenabled, if the counters are running.
Otherwise the counters are stopped, if oprofile is using the nmi. In
other cases it will ignore the nmi notification.

Cc: Andi Kleen <andi@firstfloor.org>
Signed-off-by: Robert Richter <robert.richter@amd.com>

No differences found