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

qcacmn: Define platform CACHE_LINE_SZ

Add platform CACHE_LINE_SZ so that it can be used to roundup the data
structures.

Change-Id: Iec45f5747956d0797411f76c2fec1368a13e7d6d
CRs-Fixed: 2046852
Manjunathappa Prakash 8 лет назад
Родитель
Сommit
86287dcf2e
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