diff options
Diffstat (limited to 'drivers/oprofile/cpu_buffer.c')
| -rw-r--r-- | drivers/oprofile/cpu_buffer.c | 11 | 
1 files changed, 3 insertions, 8 deletions
diff --git a/drivers/oprofile/cpu_buffer.c b/drivers/oprofile/cpu_buffer.c index b8ef8ddcc29..8aa73fac6ad 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)  {  	struct oprofile_cpu_buffer *b =  		container_of(work, struct oprofile_cpu_buffer, work.work); -	if (b->cpu != smp_processor_id()) { -		printk(KERN_DEBUG "WQ on CPU%d, prefer CPU%d\n", -		       smp_processor_id(), b->cpu); - -		if (!cpu_online(b->cpu)) { -			cancel_delayed_work(&b->work); -			return; -		} +	if (b->cpu != smp_processor_id() && !cpu_online(b->cpu)) { +		cancel_delayed_work(&b->work); +		return;  	}  	sync_buffer(b->cpu);  |