lkml.org 
[lkml]   [2018]   [Feb]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH V2 1/7] sched/topology: Adding function partition_sched_domains_locked()
Hi Mathieu,

On 01/02/18 09:51, Mathieu Poirier wrote:
> Introducing function partition_sched_domains_locked() by taking
> the mutex locking code out of the original function. That way
> the work done by partition_sched_domains_locked() can be reused
> without dropping the mutex lock.
>
> This patch doesn't change the functionality provided by the
> original code.
>
> Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
> ---

[...]

> +/*
> + * Call with hotplug lock held

Is this the one that we can actually check if it's locked with

lockdep_assert_cpus_held()

?

> + */
> +void partition_sched_domains(int ndoms_new, cpumask_var_t doms_new[],
> + struct sched_domain_attr *dattr_new)
> +{
> + mutex_lock(&sched_domains_mutex);
> + partition_sched_domains_locked(ndoms_new, doms_new, dattr_new);
> mutex_unlock(&sched_domains_mutex);
> }

Best,

- Juri

\
 
 \ /
  Last update: 2018-02-02 11:20    [W:1.806 / U:0.388 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site