Re: [RFC PATCH 1/7] static_call: get rid of static_call_cond()

From
Peter Zijlstra <peterz@infradead.org>
Date
2021-11-09 19:33:07
Also in
lkml
Reply to
Ard Biesheuvel, 2021-11-09
On Tue, Nov 09, 2021 at 05:45:43PM +0100, Ard Biesheuvel wrote:
quoted hunk ↗ jump to hunk
 static inline
 void __static_call_update(struct static_call_key *key, void *tramp, void *func)
 {
+	WRITE_ONCE(key->func, func ?: (void *)&__static_call_nop);
 }
Ha, yes, I suppose that ought to work.

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Thread (22 messages) 22 messages, 2 authors, last reply 2021-11-09
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help