oprofile, perf: Use per-cpu framework
authorRobert Richter <robert.richter@amd.com>
Thu, 23 Feb 2012 16:07:06 +0000 (17:07 +0100)
committerRobert Richter <robert.richter@amd.com>
Fri, 22 Jun 2012 14:31:20 +0000 (16:31 +0200)
commitf8bbfd7d28303967ca4e8597de9bdc9bf8b197e7
tree4adbc6e80a52d85b96509bee1778349c71e3c8a6
parente734568b675c985db2026848fefaac01c22977a5
oprofile, perf: Use per-cpu framework

This changes oprofile_perf.c to use the per-cpu framework.

Using the per-cpu framework should avoid error like the following:

 arch/arm/oprofile/../../../drivers/oprofile/oprofile_perf.c:28:28: error: variably modified 'perf_events' at file scope

Reported-by: William Cohen <wcohen@redhat.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Robert Richter <robert.richter@amd.com>
drivers/oprofile/oprofile_perf.c