lkml.org 
[lkml]   [2013]   [Sep]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [gcv v3 27/35] arm: Replace __get_cpu_var uses
    On Thu, 5 Sep 2013, Will Deacon wrote:

    > >
    > > if (el == DBG_ACTIVE_EL1 &&
    > > - local_dec_and_test(this_cpu_ptr(&kde_ref_count)))
    > > + this_cpu_dec_return(kde_ref_count))
    > > disable &= ~DBG_MDSCR_KDE;
    >
    > Almost! I think we just need an '== 0' check on the result from the
    > decrement, since local_dec_and_test is simply a way to check that we've
    > decremented to zero, so this patch would otherwise invert the meaning.

    Ok can you take it from here and modify it? I have no build and test
    environment set up for ARM.



    \
     
     \ /
      Last update: 2013-09-05 16:41    [W:8.137 / U:0.024 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site