Просмотр исходного кода

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
Vivek 4 лет назад
Родитель
Сommit
5589f598a5
2 измененных файлов с 8 добавлено и 6 удалено
  1. 6 1
      qdf/inc/qdf_util.h
  2. 2 5
      qdf/linux/src/i_qdf_util.h

+ 6 - 1
qdf/inc/qdf_util.h

@@ -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
@@ -303,6 +303,11 @@ typedef __qdf_wait_queue_head_t qdf_wait_queue_head_t;
  */
 #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
  * @mac_addr1: Pointer to one qdf MacAddress to compare

+ 2 - 5
qdf/linux/src/i_qdf_util.h

@@ -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)