[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v2] mm: make opt_bootscrub non-init
>>> On 26.11.18 at 18:55, <roger.pau@xxxxxxxxxx> wrote: > --- a/xen/common/page_alloc.c > +++ b/xen/common/page_alloc.c > @@ -166,7 +166,14 @@ enum bootscrub_mode { > BOOTSCRUB_ON, > BOOTSCRUB_IDLE, > }; > -static enum bootscrub_mode __initdata opt_bootscrub = BOOTSCRUB_IDLE; > +/* > + * opt_bootscrub should live in the init section, since it's not accessed > + * afterwards. However at least LLVM assumes there are no side effects of > + * accessing the variable, and optimizes the condition so opt_bootscrub is ... the condition in init_heap_pages() ... (which I guess can be folded in while committing). Jan > + * read regardless of the value of system_state: > + * https://bugs.llvm.org/show_bug.cgi?id=39707 > + */ > +static enum bootscrub_mode __read_mostly opt_bootscrub = BOOTSCRUB_IDLE; > static int __init parse_bootscrub_param(const char *s) > { > /* Interpret 'bootscrub' alone in its positive boolean form */ _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |