qcacmn: Add QDF API to set thread cpu mask

Add QDF API to set cpu mask - qdf_thread_set_cpus_allowed_ptr.
Linux version of this API is implemented using set_cpus_allowed_ptr
linux API.

Change-Id: I3122e2b30c6d3f02e9c874c19db610e5f09ec064
CRs-Fixed: 2474323
This commit is contained in:
Mohit Khanna
2019-06-18 20:06:45 -07:00
committed by nshrivas
parent 5d4c6f2f17
commit c8bcf201ef
4 changed files with 25 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2018 The Linux Foundation. All rights reserved.
* Copyright (c) 2014-2019 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
@@ -134,4 +134,13 @@ int qdf_get_current_pid(void);
*/
const char *qdf_get_current_comm(void);
/**
* qdf_thread_set_cpus_allowed_mask() - set cpu mask for a particular thread
* @thread: thread for which new cpu mask is set
* @new_mask: new cpu mask to be set for the thread
*
* Return: None
*/
void
qdf_thread_set_cpus_allowed_mask(qdf_thread_t *thread, qdf_cpu_mask *new_mask);
#endif /* __QDF_THREADS_H */