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)
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>

No differences found