aboutsummaryrefslogtreecommitdiff
path: root/include/asm-generic
diff options
context:
space:
mode:
authorSumit Singh <sumsingh@nvidia.com>2014-04-18 20:00:36 +0530
committerMoyster <oysterized@gmail.com>2016-09-10 12:07:04 +0200
commit846c3c9fbbdaeb227e641d18fe56af8b2e52bfc3 (patch)
tree307b2060200e47e967e964864205aa80776b891d /include/asm-generic
parent39f8c5a1b5c00f25b6799d712188998edf32c076 (diff)
asm-generic: relaxed.h: defined relaxed.h
Defined a new header file relaxed.h, which contains basic macros which will be used for improving power efficiency for arm64. bug 1440421 Change-Id: I5ae7503afdfbaa951827bbf466d8ddccf444f558 Signed-off-by: Sumit Singh <sumsingh@nvidia.com> Reviewed-on: http://git-master/r/398315 (cherry picked from commit dd434aeb1afea1d9ebce1099fb6ecfa7c6c762c6) Reviewed-on: http://git-master/r/422203 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Diffstat (limited to 'include/asm-generic')
-rw-r--r--include/asm-generic/relaxed.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/include/asm-generic/relaxed.h b/include/asm-generic/relaxed.h
new file mode 100644
index 000000000..37dc310a4
--- /dev/null
+++ b/include/asm-generic/relaxed.h
@@ -0,0 +1,30 @@
+/*
+ * include/asm-generic/relaxed.h
+ *
+ * Copyright (c) 2014 NVIDIA Corporation. All rights reserved.
+ * This software is licensed under the terms of the GNU General Public
+ * License version 2, as published by the Free Software Foundation, and
+ * may be copied, distributed, and modified under those terms.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+
+#ifndef _ASM_GENERIC_RELAXED_H_
+#define _ASM_GENERIC_RELAXED_H_
+
+#ifndef cpu_relaxed_read_short
+#define cpu_relaxed_read_short(p) (*(p))
+#endif
+
+#ifndef cpu_relaxed_read
+#define cpu_relaxed_read(p) (*(p))
+#endif
+
+#ifndef cpu_relaxed_read_long
+#define cpu_relaxed_read_long(p) (*(p))
+#endif
+
+#endif /*_ASM_GENERIC_RELAXED_H_*/