Hi Juergen,
How about moving the check of xen_pvspin into native_pv_lock_init() like below?This would leak xen_pvspin to non-Xen code. I'd rather do the
Oops, yes, I made the mistake. Please ignore it.
static_branch_disable() in xen_init_lock_cpu() if cpu == 0.
Yes. I will test it. :-) Thanks, dou.