Bläddra i källkod

qcacmn: Remove obsolete dmac_inv_range API

Remove obsolete dmac_inv_range API, instead use
qdf_mem_dma_sync_single_for_cpu API where ever required.
https://www.kernel.org/doc/Documentation/DMA-API-HOWTO.txt

Change-Id: I44f14e6c87c1086decc600f59f298b7b8a94bc82
CRs-Fixed: 2215678
Manjunathappa Prakash 7 år sedan
förälder
incheckning
d345d27867
2 ändrade filer med 0 tillägg och 39 borttagningar
  1. 0 14
      qdf/inc/qdf_nbuf.h
  2. 0 25
      qdf/linux/src/i_qdf_nbuf.h

+ 0 - 14
qdf/inc/qdf_nbuf.h

@@ -2568,20 +2568,6 @@ bool qdf_nbuf_is_bcast_pkt(qdf_nbuf_t buf)
 	return __qdf_nbuf_is_bcast_pkt(buf);
 }
 
-/**
- * qdf_invalidate_range() - invalidate virtual address range
- * @start: start address of the address range
- * @end: end address of the address range
- *
- * Note that this function does not write back the cache entries.
- *
- * Return: none
- */
-static inline void qdf_invalidate_range(void *start, void *end)
-{
-	__qdf_invalidate_range(start, end);
-}
-
 /**
  * qdf_nbuf_reset_num_frags() - decrement the number of fragments
  * @buf: Network buffer

+ 0 - 25
qdf/linux/src/i_qdf_nbuf.h

@@ -1797,31 +1797,6 @@ __qdf_nbuf_get_priv_ptr(struct sk_buff *skb)
 	return &skb->cb[8];
 }
 
-/**
- * __qdf_invalidate_range() - invalidate virtual address range
- * @start: start address of the address range
- * @end: end address of the address range
- *
- * Note that this function does not write back the cache entries.
- *
- * Return: none
- */
-#ifdef MSM_PLATFORM
-static inline void __qdf_invalidate_range(void *start, void *end)
-{
-	dmac_inv_range(start, end);
-}
-
-#else
-static inline void __qdf_invalidate_range(void *start, void *end)
-{
-	/* TODO figure out how to invalidate cache on x86 and other
-	 * non-MSM platform
-	 */
-	pr_err("Cache invalidate not yet implemneted for non-MSM platforms\n");
-}
-#endif
-
 /**
  * __qdf_nbuf_mark_wakeup_frame() - mark wakeup frame.
  * @buf: Pointer to nbuf