On Fri, Mar 20, 2015 at 04:47:27PM +0000, Jan Beulich wrote:
> >>> On 19.03.15 at 11:41, <chao.p.p...@linux.intel.com> wrote:
> > +static void __init parse_psr_bool(char* s, char* value, char* feature, int 
> > bit)
> > +{
> > +    if ( !strcmp(s, feature) )
> > +    {
> > +        if ( !value )
> > +            opt_psr |= bit;
> > +        else
> > +        {
> > +            int val_int = parse_bool(value);
> > +
> > +            if ( val_int == 1 )
> > +                opt_psr |= bit;
> > +            else if ( val_int != 0 )
> > +                printk("PSR: unknown %s value: %s\n", feature, value);
> > +        }
> 
> Even more so that now you try to consolidate and re-use this, you
> should honor the "off" case as much as the "on" one, i.e. explicitly
> disable a feature if it was requested to be off.
> 
This will change the default behavior(both cmt/cat will default to on),
is this your expectation?

Chao

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

Reply via email to