|
@@ -1,6 +1,6 @@
|
|
|
/*
|
|
|
* Copyright (c) 2014-2021 The Linux Foundation. All rights reserved.
|
|
|
- * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
|
|
+ * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. 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
|
|
@@ -228,4 +228,57 @@ void qdf_cpumask_or(qdf_cpu_mask *dstp, qdf_cpu_mask *src1p,
|
|
|
void
|
|
|
qdf_thread_cpumap_print_to_pagebuf(bool list, char *new_mask_str,
|
|
|
qdf_cpu_mask *new_mask);
|
|
|
+
|
|
|
+/**
|
|
|
+ * qdf_cpumask_and - *dstp = *src1p & *src2p
|
|
|
+ * @dstp: the cpumask result
|
|
|
+ * @src1p: the first input
|
|
|
+ * @src2p: the second input
|
|
|
+ *
|
|
|
+ * Return: If *@dstp is empty, returns false, else returns true
|
|
|
+ */
|
|
|
+bool
|
|
|
+qdf_cpumask_and(qdf_cpu_mask *dstp, const qdf_cpu_mask *src1p,
|
|
|
+ const qdf_cpu_mask *src2p);
|
|
|
+
|
|
|
+/**
|
|
|
+ * qdf_cpumask_andnot - *dstp = *src1p & ~*src2p
|
|
|
+ * @dstp: the cpumask result
|
|
|
+ * @src1p: the first input
|
|
|
+ * @src2p: the second input
|
|
|
+ *
|
|
|
+ * Return: If *@dstp is empty, returns false, else returns true
|
|
|
+ */
|
|
|
+bool
|
|
|
+qdf_cpumask_andnot(qdf_cpu_mask *dstp, const qdf_cpu_mask *src1p,
|
|
|
+ const qdf_cpu_mask *src2p);
|
|
|
+
|
|
|
+/**
|
|
|
+ * qdf_cpumask_equal - *src1p == *src2p
|
|
|
+ * @src1p: the first input
|
|
|
+ * @src2p: the second input
|
|
|
+ *
|
|
|
+ * Return: If *@src1p == *@src2p return true, else return false
|
|
|
+ */
|
|
|
+bool
|
|
|
+qdf_cpumask_equal(const qdf_cpu_mask *src1p, const qdf_cpu_mask *src2p);
|
|
|
+
|
|
|
+/**
|
|
|
+ * qdf_cpumask_complement - *dstp = ~*srcp
|
|
|
+ * @dstp: the cpumask result
|
|
|
+ * @srcp: the input to invert
|
|
|
+ *
|
|
|
+ * Return: None
|
|
|
+ */
|
|
|
+void
|
|
|
+qdf_cpumask_complement(qdf_cpu_mask *dstp, const qdf_cpu_mask *srcp);
|
|
|
+
|
|
|
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 0))
|
|
|
+/**
|
|
|
+ * qdf_walt_get_cpus_taken - Get taken CPUs
|
|
|
+ *
|
|
|
+ * Return: Taken CPUs
|
|
|
+ */
|
|
|
+qdf_cpu_mask qdf_walt_get_cpus_taken(void);
|
|
|
+#endif
|
|
|
#endif /* __QDF_THREADS_H */
|