lkml.org 
[lkml]   [2020]   [May]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC PATCH 1/2] debug: Convert dbg_slave_lock to an atomic
On Fri, May 22, 2020 at 03:55:09PM +0100, Daniel Thompson wrote:

> +static atomic_t slaves_must_spin;

> + if (!atomic_read(&slaves_must_spin))

> + atomic_set(&slaves_must_spin, 1);

> + atomic_set(&slaves_must_spin, 0);

There is no atomic operation there; this is pointless use of atomic_t.

\
 
 \ /
  Last update: 2020-05-22 18:28    [W:0.060 / U:10.344 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site