lkml.org 
[lkml]   [2020]   [Sep]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH net-next 1/5] net: ipa: use atomic exchange for suspend reference
From
From: Alex Elder <elder@linaro.org>
Date: Wed, 9 Sep 2020 08:43:44 -0500

> There is exactly one reference here; the "reference" is
> essentially a Boolean flag. So the value is always either
> 0 or 1.

Aha, then why not use a bitmask and test_and_set_bit() et al.?

\
 
 \ /
  Last update: 2020-09-09 23:15    [W:0.342 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site