aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/oprofile/cpu_buffer.c
diff options
context:
space:
mode:
authorRobert Richter <robert.richter@amd.com>2012-08-22 03:23:51 -0400
committerRobert Richter <robert.richter@amd.com>2012-08-27 08:49:39 -0400
commit61bccf191fe2d55b8d003b4ea3f94913745aaefa (patch)
treef91fb75d321f775bf4ea59e35c0534320d7c4597 /drivers/oprofile/cpu_buffer.c
parent81ff3478d9ba7f0b48b0abef740e542fd83adf79 (diff)
oprofile: Remove 'WQ on CPUx, prefer CPUy' warning
Under certain workloads we see the following warnings: WQ on CPU0, prefer CPU1 WQ on CPU0, prefer CPU2 WQ on CPU0, prefer CPU3 It warns the user that the wq to access a per-cpu buffers runs not on the same cpu. This happens if the wq is rescheduled on a different cpu than where the buffer is located. This was probably implemented to detect performance issues. Not sure if there actually is one as the buffers are copied to a single buffer anyway which should be the actual bottleneck. We wont change WQ implementation. Since a user can do nothing the warning is pointless. Removing it. Cc: Andi Kleen <andi@firstfloor.org> Signed-off-by: Robert Richter <robert.richter@amd.com>
Diffstat (limited to 'drivers/oprofile/cpu_buffer.c')
-rw-r--r--drivers/oprofile/cpu_buffer.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/drivers/oprofile/cpu_buffer.c b/drivers/oprofile/cpu_buffer.c
index b8ef8ddcc292..8aa73fac6ad4 100644
--- a/drivers/oprofile/cpu_buffer.c
+++ b/drivers/oprofile/cpu_buffer.c
@@ -451,14 +451,9 @@ static void wq_sync_buffer(struct work_struct *work)
451{ 451{
452 struct oprofile_cpu_buffer *b = 452 struct oprofile_cpu_buffer *b =
453 container_of(work, struct oprofile_cpu_buffer, work.work); 453 container_of(work, struct oprofile_cpu_buffer, work.work);
454 if (b->cpu != smp_processor_id()) { 454 if (b->cpu != smp_processor_id() && !cpu_online(b->cpu)) {
455 printk(KERN_DEBUG "WQ on CPU%d, prefer CPU%d\n", 455 cancel_delayed_work(&b->work);
456 smp_processor_id(), b->cpu); 456 return;
457
458 if (!cpu_online(b->cpu)) {
459 cancel_delayed_work(&b->work);
460 return;
461 }
462 } 457 }
463 sync_buffer(b->cpu); 458 sync_buffer(b->cpu);
464 459