lkml.org 
[lkml]   [2009]   [Jan]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRE: [patch 1/5] x86, ftrace, hw-branch-tracer: support hotplug cpus
>-----Original Message-----
>From: Steven Rostedt [mailto:srostedt@redhat.com]
>Sent: Friday, January 16, 2009 3:48 PM
>To: Metzger, Markus T

>> + local_irq_save(irq1);
>> + cpu = raw_smp_processor_id();
>> + if (atomic_inc_return(&tr->data[cpu]->disabled) != 1)
>> + goto out;
>>
>> - event = ring_buffer_lock_reserve(tr->buffer, sizeof(*entry), &irq);
>> + event = ring_buffer_lock_reserve(tr->buffer, sizeof(*entry), &irq2);
>> if (!event)
>> return;
>
>You need a goto out here, otherwise you leave with interrupts disabled.
>

Thanks. I will fix it and send an updated patch.

regards,
markus.

---------------------------------------------------------------------
Intel GmbH
Dornacher Strasse 1
85622 Feldkirchen/Muenchen Germany
Sitz der Gesellschaft: Feldkirchen bei Muenchen
Geschaeftsfuehrer: Douglas Lusk, Peter Gleissner, Hannes Schwaderer
Registergericht: Muenchen HRB 47456 Ust.-IdNr.
VAT Registration No.: DE129385895
Citibank Frankfurt (BLZ 502 109 00) 600119052
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.



\
 
 \ /
  Last update: 2009-01-16 16:03    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site