[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH v12 15/23] x86: refactor psr: CDP: implement set value callback function.



>>> On 03.07.17 at 14:52, <yi.y.sun@xxxxxxxxxxxxxxx> wrote:
> Ok. Then, how about below change? Thanks!
>     int ret = 0;
>     for ( i = 0; i < props->cos_num; i++ )
>     {
>         if ( type == props->type[i] )
>         {
>             val[i] = new_val;
>             ret = 0;
>             break;
>         }
>         else if ( type == props->alt_type )
>             val[i] = new_val;
>         else
>             ret = -EINVAL;
>     }

This looks okay to me.

Jan


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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.