>>> On 23.03.15 at 09:32, wrote:
> On Fri, Mar 20, 2015 at 04:47:27PM +, Jan Beulich wrote:
>> >>> On 19.03.15 at 11:41, wrote:
>> > +static void __init parse_psr_bool(char* s, char* value, char* feature,
>> > int
> bit)
>> > +{
>> > +if ( !strcmp(s, feature) )
>> > +{
>> > +
On Fri, Mar 20, 2015 at 04:47:27PM +, Jan Beulich wrote:
> >>> On 19.03.15 at 11:41, wrote:
> > +static void __init parse_psr_bool(char* s, char* value, char* feature, int
> > bit)
> > +{
> > +if ( !strcmp(s, feature) )
> > +{
> > +if ( !value )
> > +opt_psr |= bit
>>> On 19.03.15 at 11:41, 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)
Change type of opt_psr from bool to int so more psr features can fit.
Introduce a new routine to parse bool parameter so that both cmt and
future psr features like cat can use it.
Signed-off-by: Chao Peng
---
xen/arch/x86/psr.c | 37 +
1 file changed, 21 inse