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

Peter Zijlstra peterz at infradead.org
Tue Nov 9 11:32:32 PST 2021


On Tue, Nov 09, 2021 at 05:45:43PM +0100, Ard Biesheuvel wrote:
>  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.



More information about the linux-arm-kernel mailing list