[CRIU] [PATCH 1/2] include/common: Remove PAGE_SHIFT
Christopher Covington
cov at codeaurora.org
Wed Nov 2 10:15:19 PDT 2016
It is unused.
Signed-off-by: Christopher Covington <cov at codeaurora.org>
---
include/common/arch/aarch64/asm/page.h | 6 +-----
include/common/arch/arm/asm/page.h | 6 +-----
include/common/arch/ppc64/asm/page.h | 6 +-----
include/common/arch/x86/asm/page.h | 6 +-----
4 files changed, 4 insertions(+), 20 deletions(-)
diff --git a/include/common/arch/aarch64/asm/page.h b/include/common/arch/aarch64/asm/page.h
index de1fe54..b9e6a03 100644
--- a/include/common/arch/aarch64/asm/page.h
+++ b/include/common/arch/aarch64/asm/page.h
@@ -3,12 +3,8 @@
#include <unistd.h>
-#ifndef PAGE_SHIFT
-# define PAGE_SHIFT 12
-#endif
-
#ifndef PAGE_SIZE
-# define PAGE_SIZE (1UL << PAGE_SHIFT)
+# define PAGE_SIZE 4096UL
#endif
#ifndef PAGE_MASK
diff --git a/include/common/arch/arm/asm/page.h b/include/common/arch/arm/asm/page.h
index 1348355..0c8cf21 100644
--- a/include/common/arch/arm/asm/page.h
+++ b/include/common/arch/arm/asm/page.h
@@ -1,12 +1,8 @@
#ifndef __CR_ASM_PAGE_H__
#define __CR_ASM_PAGE_H__
-#ifndef PAGE_SHIFT
-# define PAGE_SHIFT 12
-#endif
-
#ifndef PAGE_SIZE
-# define PAGE_SIZE (1UL << PAGE_SHIFT)
+# define PAGE_SIZE 4096UL
#endif
#ifndef PAGE_MASK
diff --git a/include/common/arch/ppc64/asm/page.h b/include/common/arch/ppc64/asm/page.h
index 9d10455..1a68777 100644
--- a/include/common/arch/ppc64/asm/page.h
+++ b/include/common/arch/ppc64/asm/page.h
@@ -7,12 +7,8 @@
* Default config for Pseries is to use 64K pages.
* See kernel file arch/powerpc/configs/pseries_*defconfig
*/
-#ifndef PAGE_SHIFT
-# define PAGE_SHIFT 16
-#endif
-
#ifndef PAGE_SIZE
-# define PAGE_SIZE (1UL << PAGE_SHIFT)
+# define PAGE_SIZE 65536UL
#endif
#ifndef PAGE_MASK
diff --git a/include/common/arch/x86/asm/page.h b/include/common/arch/x86/asm/page.h
index 1348355..0c8cf21 100644
--- a/include/common/arch/x86/asm/page.h
+++ b/include/common/arch/x86/asm/page.h
@@ -1,12 +1,8 @@
#ifndef __CR_ASM_PAGE_H__
#define __CR_ASM_PAGE_H__
-#ifndef PAGE_SHIFT
-# define PAGE_SHIFT 12
-#endif
-
#ifndef PAGE_SIZE
-# define PAGE_SIZE (1UL << PAGE_SHIFT)
+# define PAGE_SIZE 4096UL
#endif
#ifndef PAGE_MASK
--
Qualcomm Datacenter Technologies as an affiliate of Qualcomm Technologies, Inc.
Qualcomm Technologies, Inc. is a member of the
Code Aurora Forum, a Linux Foundation Collaborative Project.
More information about the CRIU
mailing list