kernel: mem_domain: update name/doc of API function for partition add

Update the name of mem-domain API function to add a partition
so that it complies with the 'z_' prefix convention. Correct
the function documentation.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
This commit is contained in:
Ioannis Glaropoulos 2019-05-02 10:00:30 +02:00 committed by Anas Nashif
commit 873dd10ea4
5 changed files with 8 additions and 8 deletions

View file

@ -181,11 +181,11 @@ void k_mem_domain_add_partition(struct k_mem_domain *domain,
domain->num_partitions++;
/* Handle architecture-specific remove
/* Handle architecture-specific add
* only if it is the current thread.
*/
if (_current->mem_domain_info.mem_domain == domain) {
_arch_mem_domain_partition_add(domain, p_idx);
z_arch_mem_domain_partition_add(domain, p_idx);
}
k_spin_unlock(&lock, key);