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

Re: [Xen-devel] [PATCH v3] xen: sched_rt: print useful affinity info when dumping



>>> On 21.04.15 at 17:22, <dario.faggioli@xxxxxxxxxx> wrote:
> @@ -409,6 +435,15 @@ rt_init(struct scheduler *ops)
>      if ( prv == NULL )
>          return -ENOMEM;
>  
> +    ASSERT( !_cpumask_scratch || nr_rt_ops > 0 );
> +
> +    if ( !_cpumask_scratch ) {

Coding style.

> +        _cpumask_scratch = xmalloc_array(cpumask_var_t, nr_cpu_ids);
> +        if ( _cpumask_scratch == NULL )

Please be consistent - use either ! (as above) or == {NULL,0}.

Jan


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


 


Rackspace

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