Browse Source

qcacmn: Add new QDF API to check if walt_get_cpus_taken supported

Add new QDF API qdf_walt_get_cpus_taken to check if
walt_get_cpus_taken API is supported.

Change-Id: I8ed8e5608c35c45b5e630ee39a497bca31b3502d
CRs-Fixed: 3508584
Amit Mehta 2 năm trước cách đây
mục cha
commit
4a4c634bb0
1 tập tin đã thay đổi với 27 bổ sung0 xóa
  1. 27 0
      qdf/inc/qdf_threads.h

+ 27 - 0
qdf/inc/qdf_threads.h

@@ -280,5 +280,32 @@ qdf_cpumask_complement(qdf_cpu_mask *dstp, const qdf_cpu_mask *srcp);
  * Return: Taken CPUs
  */
 qdf_cpu_mask qdf_walt_get_cpus_taken(void);
+
+/*
+ * qdf_walt_get_cpus_taken_supported: walt_get_cpus_taken supported
+ *
+ * Return: true if walt_get_cpus_taken API is supported
+ */
+static inline bool
+qdf_walt_get_cpus_taken_supported(void)
+{
+	return true;
+}
+#else
+static inline
+qdf_cpu_mask qdf_walt_get_cpus_taken(void)
+{
+	qdf_cpu_mask mask;
+
+	qdf_cpumask_clear(&mask);
+
+	return mask;
+}
+
+static inline bool
+qdf_walt_get_cpus_taken_supported(void)
+{
+	return false;
+}
 #endif
 #endif /* __QDF_THREADS_H */