]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: oprofile: fix and simplify init/exit functions
authorWill Deacon <will.deacon@arm.com>
Sun, 29 Aug 2010 18:52:00 +0000 (14:52 -0400)
committerRobert Richter <robert.richter@amd.com>
Tue, 31 Aug 2010 09:49:07 +0000 (11:49 +0200)
commitf7d8d26639a23eb203c38bbb10f18d643e31c4f8
tree0ea0d2f251c1979a05d5e10bae1a0296187b95ac
parent96b561ba16ce234ecbb5e668f912643e98f8052c
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>
arch/arm/oprofile/common.c