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
This commit is contained in:
Vivek
2021-01-21 17:38:49 +05:30
committed by snandini
父節點 2bd0e399d9
當前提交 5589f598a5
共有 2 個文件被更改,包括 8 次插入6 次删除

查看文件

@@ -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
* 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);
}
/**
* qdf_in_interrupt - returns true if in interrupt context
*/
#define qdf_in_interrupt in_interrupt
#define __qdf_in_interrupt in_interrupt
#define __qdf_min(_a, _b) min(_a, _b)
#define __qdf_max(_a, _b) max(_a, _b)