lkml.org 
[lkml]   [2023]   [Feb]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [Intel-gfx] [PATCH v5 2/7] linux/include: add non-atomic version of xchg
    Hi Andrzej,

    On Wed, Jan 18, 2023 at 04:44:45PM +0100, Andrzej Hajda wrote:
    > The pattern of setting variable with new value and returning old
    > one is very common in kernel. Usually atomicity of the operation
    > is not required, so xchg seems to be suboptimal and confusing in
    > such cases.
    >
    > Signed-off-by: Andrzej Hajda <andrzej.hajda@intel.com>
    > Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

    Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>

    Thanks,
    Andi

    \
     
     \ /
      Last update: 2023-03-27 00:36    [W:4.205 / U:0.052 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site