android_kernel_xiaomi_sdm845/drivers/oprofile
Will Deacon 979048e1f2 oprofile: don't call arch exit code from init code on failure
oprofile_init calls oprofile_arch_init to initialise the architecture-specific
backend code. If this backend code returns failure, oprofile_arch_exit is
called immediately, making it difficult to allocate and free resources
correctly.

This patch removes the oprofile_arch_exit call from oprofile_init,
meaning that all architectures must ensure that oprofile_arch_init
cleans up any mess it's made before returning an error. As far as
I can tell, this only affects the code for ARM.

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>
2010-08-31 11:47:50 +02:00
..
buffer_sync.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
buffer_sync.h cpumask: modifiy oprofile initialization 2009-01-22 14:37:06 +01:00
cpu_buffer.c oprofile: protect from not being in an IRQ context 2010-05-03 23:02:39 +02:00
cpu_buffer.h percpu: make percpu symbols in oprofile unique 2009-10-29 22:34:13 +09:00
event_buffer.c oprofile: make event buffer nonseekable 2010-07-26 10:58:24 +02:00
event_buffer.h Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rric/oprofile 2008-10-23 10:05:40 -07:00
oprof.c oprofile: don't call arch exit code from init code on failure 2010-08-31 11:47:50 +02:00
oprof.h oprofile: convert oprofile from timer_hook to hrtimer 2010-03-02 17:03:20 +01:00
oprofile_files.c oprofile: Remove oprofile_multiplexing_init() 2009-07-20 16:43:19 +02:00
oprofile_stats.c percpu: make percpu symbols in oprofile unique 2009-10-29 22:34:13 +09:00
oprofile_stats.h oprofile: Adding switch counter to oprofile statistic variables 2009-07-20 16:43:21 +02:00
oprofilefs.c const: mark remaining super_operations const 2009-09-22 07:17:24 -07:00
timer_int.c oprofile: convert oprofile from timer_hook to hrtimer 2010-03-02 17:03:20 +01:00