[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1291145910.32004.1166.camel@laptop>
Date: Tue, 30 Nov 2010 20:38:30 +0100
From: Peter Zijlstra <a.p.zijlstra@...llo.nl>
To: Eric Dumazet <eric.dumazet@...il.com>
Cc: Christoph Lameter <cl@...ux.com>, akpm@...ux-foundation.org,
Pekka Enberg <penberg@...helsinki.fi>,
Catalin Marinas <catalin.marinas@....com>,
linux-kernel@...r.kernel.org,
Mathieu Desnoyers <mathieu.desnoyers@...icios.com>,
Tejun Heo <tj@...nel.org>, linux-mm@...ck.org
Subject: Re: [thisops uV3 07/18] highmem: Use this_cpu_xx_return()
operations
On Tue, 2010-11-30 at 20:29 +0100, Eric Dumazet wrote:
>
> well maybe a single prototype ;)
>
> static inline void kmap_atomic_idx_pop(void)
> {
> #ifdef CONFIG_DEBUG_HIGHMEM
> int idx = __this_cpu_dec_return(__kmap_atomic_idx);
> BUG_ON(idx < 0);
> #else
> __this_cpu_dec(__kmap_atomic_idx);
> #endif
> }
Right, at least a consistent prototype, the above looks fine to me.
--
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