oprofile: hotplug cpu fix
authorChris J Arges <arges@linux.vnet.ibm.com>
Wed, 15 Oct 2008 16:03:39 +0000 (11:03 -0500)
committerRobert Richter <robert.richter@amd.com>
Fri, 17 Oct 2008 08:38:58 +0000 (10:38 +0200)
commit4bd9b9dc97e344670e9e5762399a07dcd5f15311
tree47bafd5ea9e5fd68738ab6788fee6d7f21815303
parent0f019cc477b494dfc472f2a98eb64d02d4937741
oprofile: hotplug cpu fix

This patch addresses problems when hotplugging cpus while
profiling. Instead of allocating only online cpus, all possible cpu
buffers are allocated, which allows cpus to be onlined during
operation. If a cpu is offlined before profiling is shutdown
wq_sync_buffer checks for this condition then cancels this work and
does not sync this buffer.

Signed-off-by: Chris J Arges <arges@linux.vnet.ibm.com>
Signed-off-by: Robert Richter <robert.richter@amd.com>
drivers/oprofile/cpu_buffer.c