summaryrefslogtreecommitdiff
path: root/tools/include
diff options
context:
space:
mode:
authorKarolina Drobnik <karolinadrobnik@gmail.com>2022-02-02 12:03:05 +0100
committerMike Rapoport <rppt@linux.ibm.com>2022-02-20 08:44:37 +0200
commit1fef073b71c3f22e2328872324fdb187f4fb7d7d (patch)
treee9d205496773a2b4afa94629c4bc5df3998b9940 /tools/include
parent2473bc35ba554003cdda8a3a0124f35433590fe7 (diff)
tools/include: Add cache.h stub
Add a dummy version of the cache header. Signed-off-by: Karolina Drobnik <karolinadrobnik@gmail.com> Signed-off-by: Mike Rapoport <rppt@kernel.org> Link: https://lore.kernel.org/r/5e02865094aaf56dd30772722799e53f4130ebc8.1643796665.git.karolinadrobnik@gmail.com
Diffstat (limited to 'tools/include')
-rw-r--r--tools/include/linux/cache.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/include/linux/cache.h b/tools/include/linux/cache.h
new file mode 100644
index 000000000000..9e9d585f0b9d
--- /dev/null
+++ b/tools/include/linux/cache.h
@@ -0,0 +1,10 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef _TOOLS_LINUX_CACHE_H
+#define _TOOLS_LINUX_CACHE_H
+
+#define L1_CACHE_SHIFT 5
+#define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)
+
+#define SMP_CACHE_BYTES L1_CACHE_BYTES
+
+#endif