فهرست منبع

Merge "qcacmn: Define platform CACHE_LINE_SZ"

Linux Build Service Account 7 سال پیش
والد
کامیت
fc77072c6e
2فایلهای تغییر یافته به همراه5 افزوده شده و 0 حذف شده
  1. 2 0
      qdf/inc/qdf_mem.h
  2. 3 0
      qdf/linux/src/i_qdf_mem.h

+ 2 - 0
qdf/inc/qdf_mem.h

@@ -37,6 +37,8 @@
 #include <qdf_types.h>
 #include <i_qdf_mem.h>
 
+#define QDF_CACHE_LINE_SZ __qdf_cache_line_sz
+
 /**
  * qdf_align() - align to the given size.
  * @a: input that needs to be aligned.

+ 3 - 0
qdf/linux/src/i_qdf_mem.h

@@ -45,6 +45,9 @@
 #include <linux/hardirq.h>
 #include <linux/vmalloc.h>
 #include <linux/pci.h> /* pci_alloc_consistent */
+#include <linux/cache.h> /* L1_CACHE_BYTES */
+
+#define __qdf_cache_line_sz L1_CACHE_BYTES
 #if CONFIG_MCL
 #include <cds_queue.h>
 #else