lkml.org 
[lkml]   [2022]   [Aug]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] netdev: Use try_cmpxchg in napi_if_scheduled_mark_missed
From
Date
Hello:

This patch was applied to netdev/net-next.git (master)
by Jakub Kicinski <kuba@kernel.org>:

On Mon, 22 Aug 2022 16:32:43 +0200 you wrote:
> Use try_cmpxchg instead of cmpxchg (*ptr, old, new) == old in
> napi_if_scheduled_mark_missed. x86 CMPXCHG instruction returns
> success in ZF flag, so this change saves a compare after cmpxchg
> (and related move instruction in front of cmpxchg).
>
> Also, try_cmpxchg implicitly assigns old *ptr value to "old" when cmpxchg
> fails, enabling further code simplifications.
>
> [...]

Here is the summary with links:
- netdev: Use try_cmpxchg in napi_if_scheduled_mark_missed
https://git.kernel.org/netdev/net-next/c/b9030780971b

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html


\
 
 \ /
  Last update: 2022-08-26 01:12    [W:0.033 / U:1.300 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site