aboutsummaryrefslogtreecommitdiffstats
path: root/include/acpi
diff options
context:
space:
mode:
authorLv Zheng <lv.zheng@intel.com>2012-12-19 00:37:15 -0500
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-01-10 06:36:18 -0500
commit3e8214e5c2bd449b30109d4a098597ab1b7c9fb9 (patch)
tree1f256120555cba08aad93c865d02519698732554 /include/acpi
parent739dcbb90a347a66f25cc0c3ef4eef3d4558f409 (diff)
ACPICA: Cleanup indentation to reduce differences between Linux and ACPICA.
This is a cosmetic patch only. Comparison of the resulting binary showed only line number differences. This patch does not affect the generation of the Linux binary. This patch decreases 210 lines of 20121018 divergence.diff. The ACPICA source codes uses a totally different indentation style from the Linux to be compatible with other users (operating systems or BIOS). Indentation differences are critical to the release automation. There are two causes related to the "indentation" that are affecting the release automation: 1. The ACPICA -> Linux release process is: ACPICA source -- acpisrc - hierarchy - indent -> linuxized ACPICA source -- diff -> linuxized ACPICA patch (x) -- human intervention -> linuxized ACPICA patch (o) Where 'x' means "cannot be directly applied to the Linux" 'o' means "can be directly applied to the Linux" Different "indent" version or "indent" options used in the "indent" step will lead to different divergences. The version of "indent" used for the current release process is: GNU indent 2.2.11 The options of "indent" used for the current release process is: -npro -kr -i8 -ts8 -sob -l80 -ss -ncs 2. Manual indentation prettifying work in the Linux side will also harm the automatically generated linuxized ACPICA patches, making them impossible to apply directly. This patch fixes source code differences caused by the two causes so that the "human intervention" can be reduced in the future. Signed-off-by: Lv Zheng <lv.zheng@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/acpi')
-rw-r--r--include/acpi/acpiosxf.h4
-rw-r--r--include/acpi/acpixf.h4
-rw-r--r--include/acpi/actbl.h1
-rw-r--r--include/acpi/platform/acenv.h13
-rw-r--r--include/acpi/platform/aclinux.h1
5 files changed, 17 insertions, 6 deletions
diff --git a/include/acpi/acpiosxf.h b/include/acpi/acpiosxf.h
index 33a3e17da362..dfcedc6da9ac 100644
--- a/include/acpi/acpiosxf.h
+++ b/include/acpi/acpiosxf.h
@@ -102,10 +102,8 @@ acpi_os_physical_table_override(struct acpi_table_header *existing_table,
102/* 102/*
103 * Spinlock primitives 103 * Spinlock primitives
104 */ 104 */
105
106#ifndef acpi_os_create_lock 105#ifndef acpi_os_create_lock
107acpi_status 106acpi_status acpi_os_create_lock(acpi_spinlock * out_handle);
108acpi_os_create_lock(acpi_spinlock *out_handle);
109#endif 107#endif
110 108
111void acpi_os_delete_lock(acpi_spinlock handle); 109void acpi_os_delete_lock(acpi_spinlock handle);
diff --git a/include/acpi/acpixf.h b/include/acpi/acpixf.h
index b409406d3ccf..b77ee009bcfc 100644
--- a/include/acpi/acpixf.h
+++ b/include/acpi/acpixf.h
@@ -62,10 +62,14 @@ extern u32 acpi_current_gpe_count;
62extern struct acpi_table_fadt acpi_gbl_FADT; 62extern struct acpi_table_fadt acpi_gbl_FADT;
63extern u8 acpi_gbl_system_awake_and_running; 63extern u8 acpi_gbl_system_awake_and_running;
64extern u8 acpi_gbl_reduced_hardware; /* ACPI 5.0 */ 64extern u8 acpi_gbl_reduced_hardware; /* ACPI 5.0 */
65
65/* Runtime configuration of debug print levels */ 66/* Runtime configuration of debug print levels */
67
66extern u32 acpi_dbg_level; 68extern u32 acpi_dbg_level;
67extern u32 acpi_dbg_layer; 69extern u32 acpi_dbg_layer;
70
68/* ACPICA runtime options */ 71/* ACPICA runtime options */
72
69extern u8 acpi_gbl_enable_interpreter_slack; 73extern u8 acpi_gbl_enable_interpreter_slack;
70extern u8 acpi_gbl_all_methods_serialized; 74extern u8 acpi_gbl_all_methods_serialized;
71extern u8 acpi_gbl_create_osi_method; 75extern u8 acpi_gbl_create_osi_method;
diff --git a/include/acpi/actbl.h b/include/acpi/actbl.h
index c0e6c32353ed..ee050e86d17c 100644
--- a/include/acpi/actbl.h
+++ b/include/acpi/actbl.h
@@ -357,7 +357,6 @@ struct acpi_table_desc {
357/* 357/*
358 * Get the remaining ACPI tables 358 * Get the remaining ACPI tables
359 */ 359 */
360
361#include <acpi/actbl1.h> 360#include <acpi/actbl1.h>
362#include <acpi/actbl2.h> 361#include <acpi/actbl2.h>
363#include <acpi/actbl3.h> 362#include <acpi/actbl3.h>
diff --git a/include/acpi/platform/acenv.h b/include/acpi/platform/acenv.h
index cec6cd3e850d..a74afaf1b80c 100644
--- a/include/acpi/platform/acenv.h
+++ b/include/acpi/platform/acenv.h
@@ -49,6 +49,7 @@
49 * to the local environment. This includes compiler-specific, OS-specific, 49 * to the local environment. This includes compiler-specific, OS-specific,
50 * and machine-specific configuration. 50 * and machine-specific configuration.
51 */ 51 */
52
52/* Types for ACPI_MUTEX_TYPE */ 53/* Types for ACPI_MUTEX_TYPE */
53 54
54#define ACPI_BINARY_SEMAPHORE 0 55#define ACPI_BINARY_SEMAPHORE 0
@@ -66,6 +67,7 @@
66 *****************************************************************************/ 67 *****************************************************************************/
67 68
68/* iASL configuration */ 69/* iASL configuration */
70
69#ifdef ACPI_ASL_COMPILER 71#ifdef ACPI_ASL_COMPILER
70#define ACPI_APPLICATION 72#define ACPI_APPLICATION
71#define ACPI_DISASSEMBLER 73#define ACPI_DISASSEMBLER
@@ -77,6 +79,7 @@
77#endif 79#endif
78 80
79/* acpi_exec configuration. Multithreaded with full AML debugger */ 81/* acpi_exec configuration. Multithreaded with full AML debugger */
82
80#ifdef ACPI_EXEC_APP 83#ifdef ACPI_EXEC_APP
81#define ACPI_APPLICATION 84#define ACPI_APPLICATION
82#define ACPI_FULL_DEBUG 85#define ACPI_FULL_DEBUG
@@ -117,12 +120,14 @@
117#endif 120#endif
118 121
119/* Common for all ACPICA applications */ 122/* Common for all ACPICA applications */
123
120#ifdef ACPI_APPLICATION 124#ifdef ACPI_APPLICATION
121#define ACPI_USE_SYSTEM_CLIBRARY 125#define ACPI_USE_SYSTEM_CLIBRARY
122#define ACPI_USE_LOCAL_CACHE 126#define ACPI_USE_LOCAL_CACHE
123#endif 127#endif
124 128
125/* Common debug support */ 129/* Common debug support */
130
126#ifdef ACPI_FULL_DEBUG 131#ifdef ACPI_FULL_DEBUG
127#define ACPI_DEBUGGER 132#define ACPI_DEBUGGER
128#define ACPI_DEBUG_OUTPUT 133#define ACPI_DEBUG_OUTPUT
@@ -138,6 +143,7 @@
138 * by the host files. 143 * by the host files.
139 * 144 *
140 *****************************************************************************/ 145 *****************************************************************************/
146
141#if defined(_LINUX) || defined(__linux__) 147#if defined(_LINUX) || defined(__linux__)
142#include <acpi/platform/aclinux.h> 148#include <acpi/platform/aclinux.h>
143 149
@@ -294,7 +300,9 @@
294/* Use the standard C library headers. We want to keep these to a minimum. */ 300/* Use the standard C library headers. We want to keep these to a minimum. */
295 301
296#ifdef ACPI_USE_STANDARD_HEADERS 302#ifdef ACPI_USE_STANDARD_HEADERS
303
297/* Use the standard headers from the standard locations */ 304/* Use the standard headers from the standard locations */
305
298#include <stdarg.h> 306#include <stdarg.h>
299#include <stdlib.h> 307#include <stdlib.h>
300#include <string.h> 308#include <string.h>
@@ -303,6 +311,7 @@
303#endif /* ACPI_USE_STANDARD_HEADERS */ 311#endif /* ACPI_USE_STANDARD_HEADERS */
304 312
305/* We will be linking to the standard Clib functions */ 313/* We will be linking to the standard Clib functions */
314
306#define ACPI_STRSTR(s1,s2) strstr((s1), (s2)) 315#define ACPI_STRSTR(s1,s2) strstr((s1), (s2))
307#define ACPI_STRCHR(s1,c) strchr((s1), (c)) 316#define ACPI_STRCHR(s1,c) strchr((s1), (c))
308#define ACPI_STRLEN(s) (acpi_size) strlen((s)) 317#define ACPI_STRLEN(s) (acpi_size) strlen((s))
@@ -340,7 +349,6 @@
340 * implementation provided by a native C library, but they are functionally 349 * implementation provided by a native C library, but they are functionally
341 * equivalent. 350 * equivalent.
342 */ 351 */
343
344#ifndef va_arg 352#ifndef va_arg
345 353
346#ifndef _VALIST 354#ifndef _VALIST
@@ -349,10 +357,12 @@ typedef char *va_list;
349#endif /* _VALIST */ 357#endif /* _VALIST */
350 358
351/* Storage alignment properties */ 359/* Storage alignment properties */
360
352#define _AUPBND (sizeof (acpi_native_int) - 1) 361#define _AUPBND (sizeof (acpi_native_int) - 1)
353#define _ADNBND (sizeof (acpi_native_int) - 1) 362#define _ADNBND (sizeof (acpi_native_int) - 1)
354 363
355/* Variable argument list macro definitions */ 364/* Variable argument list macro definitions */
365
356#define _bnd(X, bnd) (((sizeof (X)) + (bnd)) & (~(bnd))) 366#define _bnd(X, bnd) (((sizeof (X)) + (bnd)) & (~(bnd)))
357#define va_arg(ap, T) (*(T *)(((ap) += (_bnd (T, _AUPBND))) - (_bnd (T,_ADNBND)))) 367#define va_arg(ap, T) (*(T *)(((ap) += (_bnd (T, _AUPBND))) - (_bnd (T,_ADNBND))))
358#define va_end(ap) (ap = (va_list) NULL) 368#define va_end(ap) (ap = (va_list) NULL)
@@ -361,6 +371,7 @@ typedef char *va_list;
361#endif /* va_arg */ 371#endif /* va_arg */
362 372
363/* Use the local (ACPICA) definitions of the clib functions */ 373/* Use the local (ACPICA) definitions of the clib functions */
374
364#define ACPI_STRSTR(s1,s2) acpi_ut_strstr ((s1), (s2)) 375#define ACPI_STRSTR(s1,s2) acpi_ut_strstr ((s1), (s2))
365#define ACPI_STRCHR(s1,c) acpi_ut_strchr ((s1), (c)) 376#define ACPI_STRCHR(s1,c) acpi_ut_strchr ((s1), (c))
366#define ACPI_STRLEN(s) (acpi_size) acpi_ut_strlen ((s)) 377#define ACPI_STRLEN(s) (acpi_size) acpi_ut_strlen ((s))
diff --git a/include/acpi/platform/aclinux.h b/include/acpi/platform/aclinux.h
index 85d5d8f38452..33d05b06c6ef 100644
--- a/include/acpi/platform/aclinux.h
+++ b/include/acpi/platform/aclinux.h
@@ -108,7 +108,6 @@
108 108
109#include <acpi/platform/acgcc.h> 109#include <acpi/platform/acgcc.h>
110 110
111
112#ifdef __KERNEL__ 111#ifdef __KERNEL__
113#include <acpi/actypes.h> 112#include <acpi/actypes.h>
114/* 113/*