lkml.org 
[lkml]   [2010]   [Nov]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [thisops uV3 07/18] highmem: Use this_cpu_xx_return() operations
From
Date
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.


\
 
 \ /
  Last update: 2010-11-30 20:41    [W:0.184 / U:0.524 seconds]
©2003-2014 Jasper Spaans. Advertise on this site