Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 38763ce9 authored by Nisha Menon's avatar Nisha Menon Committed by snandini
Browse files

qcacmn: Add new cpumask apis to framework

Add new qdf apis to copy cpumask and check if an
existing cpumask is empty.

Change-Id: Iac26aa9ee9cca5762dbeb16834c0dc89e270fc5c
CRs-Fixed: 2738317
parent f7d77da6
Loading
Loading
Loading
Loading
+21 −1
Original line number Diff line number Diff line
/*
 * Copyright (c) 2014-2019 The Linux Foundation. All rights reserved.
 * Copyright (c) 2014-2020 The Linux Foundation. All rights reserved.
 *
 * Permission to use, copy, modify, and/or distribute this software for
 * any purpose with or without fee is hereby granted, provided that the
@@ -168,4 +168,24 @@ void qdf_cpumask_set_cpu(unsigned int cpu, qdf_cpu_mask *dstp);
 * Return: None
 */
void qdf_cpumask_setall(qdf_cpu_mask *dstp);

/**
 * qdf_cpumask_empty - Check if cpu_mask is empty
 * @srcp: cpumask pointer
 *
 * Return: true or false
 *
 */
bool qdf_cpumask_empty(const struct cpumask *srcp);

/**
 * qdf_cpumask_copy - Copy srcp cpumask to dstp
 * @srcp: source cpumask pointer
 * @dstp: destination cpumask pointer
 *
 * Return: None
 *
 */
void qdf_cpumask_copy(struct cpumask *dstp,
		      const struct cpumask *srcp);
#endif /* __QDF_THREADS_H */
+16 −1
Original line number Diff line number Diff line
/*
 * Copyright (c) 2014-2019 The Linux Foundation. All rights reserved.
 * Copyright (c) 2014-2020 The Linux Foundation. All rights reserved.
 *
 * Permission to use, copy, modify, and/or distribute this software for
 * any purpose with or without fee is hereby granted, provided that the
@@ -278,3 +278,18 @@ void qdf_cpumask_setall(qdf_cpu_mask *dstp)
}

qdf_export_symbol(qdf_cpumask_setall);

bool qdf_cpumask_empty(const struct cpumask *srcp)
{
	return cpumask_empty(srcp);
}

qdf_export_symbol(qdf_cpumask_empty);

void qdf_cpumask_copy(struct cpumask *dstp,
		      const struct cpumask *srcp)
{
	return cpumask_copy(dstp, srcp);
}

qdf_export_symbol(qdf_cpumask_copy);