[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <00000140ee828138-3328099b-149e-433d-8262-0a481806ca85-000000@email.amazonses.com>
Date: Thu, 5 Sep 2013 14:24:25 +0000
From: Christoph Lameter <cl@...ux.com>
To: Will Deacon <will.deacon@....com>
cc: Tejun Heo <tj@...nel.org>,
"akpm@...uxfoundation.org" <akpm@...uxfoundation.org>,
Russell King <linux@....linux.org.uk>,
Catalin Marinas <Catalin.Marinas@....com>,
"linux-arch@...r.kernel.org" <linux-arch@...r.kernel.org>,
Steven Rostedt <srostedt@...hat.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists