From 86287dcf2ee6a6404be4dab6086da57076d5af35 Mon Sep 17 00:00:00 2001 From: Manjunathappa Prakash Date: Thu, 7 Jul 2016 09:10:17 -0700 Subject: [PATCH] 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 --- qdf/inc/qdf_mem.h | 2 ++ qdf/linux/src/i_qdf_mem.h | 3 +++ 2 files changed, 5 insertions(+) diff --git a/qdf/inc/qdf_mem.h b/qdf/inc/qdf_mem.h index 8eac979a15f5..06271523667f 100644 --- a/qdf/inc/qdf_mem.h +++ b/qdf/inc/qdf_mem.h @@ -37,6 +37,8 @@ #include #include +#define QDF_CACHE_LINE_SZ __qdf_cache_line_sz + /** * qdf_align() - align to the given size. * @a: input that needs to be aligned. diff --git a/qdf/linux/src/i_qdf_mem.h b/qdf/linux/src/i_qdf_mem.h index ba58c4e0d229..de945dacdede 100644 --- a/qdf/linux/src/i_qdf_mem.h +++ b/qdf/linux/src/i_qdf_mem.h @@ -45,6 +45,9 @@ #include #include #include /* pci_alloc_consistent */ +#include /* L1_CACHE_BYTES */ + +#define __qdf_cache_line_sz L1_CACHE_BYTES #if CONFIG_MCL #include #else