aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/oprofile
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2010-08-29 14:52:00 -0400
committerRobert Richter <robert.richter@amd.com>2010-08-31 11:49:07 +0200
commitc7fd239a647ead1c336a051012d6bb96465ea8c6 (patch)
tree0ea0d2f251c1979a05d5e10bae1a0296187b95ac /drivers/oprofile
parentoprofile: don't call arch exit code from init code on failure (diff)
downloadlinux-dev-c7fd239a647ead1c336a051012d6bb96465ea8c6.tar.xz
linux-dev-c7fd239a647ead1c336a051012d6bb96465ea8c6.zip
ARM: oprofile: fix and simplify init/exit functions
Now that oprofile_arch_exit is only called when the OProfile module is unloaded, it can assume that init completed successfully and not have to worry about double frees or releasing NULL perf events. This patch ensures that oprofile_arch_init fails gracefully on ARM and simplifies the exit code based on the above. Cc: Robert Richter <robert.richter@amd.com> Cc: Matt Fleming <matt@console-pimps.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Ingo Molnar <mingo@elte.hu> Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Robert Richter <robert.richter@amd.com>
Diffstat (limited to 'drivers/oprofile')
0 files changed, 0 insertions, 0 deletions