On 15/11/2018 00:22, David Woodhouse wrote: > On Thu, 2018-11-08 at 11:18 +0100, Juergen Gross wrote: >> Oh, sorry. Of course it does. Dereferencing a percpu variable >> directly can't work. How silly of me. >> >> The attached variant should repair that. Tested to not break booting. > > Strictly speaking, shouldn't you have an atomic_init() in there > somewhere?
atomic_t variables initialized with 0 (e.g. static ones) seem not to require atomic_init() (or ATOMIC_INIT). Documentation/atomic_t.txt doesn't mention the need to use it in this case. So I guess it is a matter of taste. Juergen _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
