qcacmn: Abstract the qdf_in_interrupt API
The qdf_in_interrupt API was defined in the internal Linux util file. Move the API from internal to qdf_util.h and provide the appropriate abstraction CRs-Fixed: 2853590 Change-Id: I512155776275684223c1901d789853d2529fcc83
このコミットが含まれているのは:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2014-2020 The Linux Foundation. All rights reserved.
|
* Copyright (c) 2014-2021 The Linux Foundation. All rights reserved.
|
||||||
*
|
*
|
||||||
* Permission to use, copy, modify, and/or distribute this software for
|
* Permission to use, copy, modify, and/or distribute this software for
|
||||||
* any purpose with or without fee is hereby granted, provided that the
|
* any purpose with or without fee is hereby granted, provided that the
|
||||||
@@ -303,6 +303,11 @@ typedef __qdf_wait_queue_head_t qdf_wait_queue_head_t;
|
|||||||
*/
|
*/
|
||||||
#define qdf_ceil(x, y) __qdf_ceil(x, y)
|
#define qdf_ceil(x, y) __qdf_ceil(x, y)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* qdf_in_interrupt - returns true if in interrupt context
|
||||||
|
*/
|
||||||
|
#define qdf_in_interrupt __qdf_in_interrupt
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* qdf_is_macaddr_equal() - compare two QDF MacAddress
|
* qdf_is_macaddr_equal() - compare two QDF MacAddress
|
||||||
* @mac_addr1: Pointer to one qdf MacAddress to compare
|
* @mac_addr1: Pointer to one qdf MacAddress to compare
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2014-2020 The Linux Foundation. All rights reserved.
|
* Copyright (c) 2014-2021 The Linux Foundation. All rights reserved.
|
||||||
*
|
*
|
||||||
* Permission to use, copy, modify, and/or distribute this software for
|
* Permission to use, copy, modify, and/or distribute this software for
|
||||||
* any purpose with or without fee is hereby granted, provided that the
|
* any purpose with or without fee is hereby granted, provided that the
|
||||||
@@ -169,10 +169,7 @@ static inline bool __qdf_is_macaddr_equal(struct qdf_mac_addr *mac_addr1,
|
|||||||
return 0 == memcmp(mac_addr1, mac_addr2, QDF_MAC_ADDR_SIZE);
|
return 0 == memcmp(mac_addr1, mac_addr2, QDF_MAC_ADDR_SIZE);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
#define __qdf_in_interrupt in_interrupt
|
||||||
* qdf_in_interrupt - returns true if in interrupt context
|
|
||||||
*/
|
|
||||||
#define qdf_in_interrupt in_interrupt
|
|
||||||
|
|
||||||
#define __qdf_min(_a, _b) min(_a, _b)
|
#define __qdf_min(_a, _b) min(_a, _b)
|
||||||
#define __qdf_max(_a, _b) max(_a, _b)
|
#define __qdf_max(_a, _b) max(_a, _b)
|
||||||
|
新しいイシューから参照
ユーザーをブロックする