qcacmn: Add QDF api to get smp processor id

Add QDF api to get smp processor id.

Change-Id: If0187ca1bc609f4cb9107bbb343b2bb180910f46
CRs-Fixed: 3066767
This commit is contained in:
Yeshwanth Sriram Guntuka
2021-11-01 10:51:37 +05:30
committed by Madan Koyyalamudi
parent a89e4f0c78
commit 1ede276269
2 changed files with 20 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
/*
* Copyright (c) 2014-2021 The Linux Foundation. All rights reserved.
* Copyright (c) 2021 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
@@ -886,4 +887,13 @@ int qdf_fls(uint32_t x)
return __qdf_fls(x);
}
/**
* qdf_get_smp_processor_id() - Get the current CPU id
*
* Return: current CPU id
*/
static inline int qdf_get_smp_processor_id(void)
{
return __qdf_get_smp_processor_id();
}
#endif /*_QDF_UTIL_H*/