]> git.baikalelectronics.ru Git - kernel.git/commit
perf, x86: Avoid kfree() in CPU_STARTING
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Fri, 22 Jul 2011 11:41:54 +0000 (13:41 +0200)
committerIngo Molnar <mingo@elte.hu>
Sun, 14 Aug 2011 09:53:02 +0000 (11:53 +0200)
commit7607ccf8216589ed0d02c084f2c87b7f62e52b9d
tree6cdb2d8c57da4dde9df3aa22bd4839151884dba6
parent4d16786045760dc06975b89ec7e84843600b2e12
perf, x86: Avoid kfree() in CPU_STARTING

On -rt kfree() can schedule, but CPU_STARTING is before the CPU is
fully up and running. These are contradictory, so avoid it. Instead
push the kfree() to CPU_ONLINE where we're free to schedule.

Reported-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/n/tip-kwd4j6ayld5thrscvaxgjquv@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/perf_event.c
arch/x86/kernel/cpu/perf_event_amd.c
arch/x86/kernel/cpu/perf_event_intel.c