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
This commit is contained in:
Manjunathappa Prakash
2016-07-07 09:10:17 -07:00
committed by snandini
parent ed4bcf8e9d
commit 86287dcf2e
2 changed files with 5 additions and 0 deletions

View File

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

View File

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