x86/oprofile: Add counter reservation check for virtual counters
commit11be1a7b54283021777f409aa983ce125945e67c
authorRobert Richter <robert.richter@amd.com>
Fri, 10 Jul 2009 16:15:21 +0000 (10 18:15 +0200)
committerRobert Richter <robert.richter@amd.com>
Mon, 20 Jul 2009 14:43:21 +0000 (20 16:43 +0200)
tree29200e0dc0d614999fb75fbf429519ddded778d3
parent61d149d5248ad7428801cdede0f5fcc2b90cd61c
x86/oprofile: Add counter reservation check for virtual counters

This patch adds a check for the availability of a counter. A virtual
counter is used only if its physical counter is not reserved.

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