]> git.sur5r.net Git - u-boot/blobdiff - arch/x86/include/asm/cache.h
SPDX: Convert all of our single license tags to Linux Kernel style
[u-boot] / arch / x86 / include / asm / cache.h
index 508b63f5ab3894956c97723a5872054ae99cc417..145b8784de1eb50ca3bd0527725bda275ad79343 100644 (file)
@@ -1,7 +1,6 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
 /*
  * Copyright (c) 2011 The Chromium OS Authors.
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #ifndef __X86_CACHE_H__
  * If CONFIG_SYS_CACHELINE_SIZE is defined use it for DMA alignment.  Otherwise
  * use 64-bytes, a safe default for x86.
  */
-#ifdef CONFIG_SYS_CACHELINE_SIZE
-#define ARCH_DMA_MINALIGN      CONFIG_SYS_CACHELINE_SIZE
-#else
-#define ARCH_DMA_MINALIGN      64
+#ifndef CONFIG_SYS_CACHELINE_SIZE
+#define CONFIG_SYS_CACHELINE_SIZE      64
 #endif
 
+#define ARCH_DMA_MINALIGN              CONFIG_SYS_CACHELINE_SIZE
+
 static inline void wbinvd(void)
 {
        asm volatile ("wbinvd" : : : "memory");