aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/acpica/hwesleep.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/acpica/hwesleep.c')
-rw-r--r--drivers/acpi/acpica/hwesleep.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/acpi/acpica/hwesleep.c b/drivers/acpi/acpica/hwesleep.c
index 9e44c6c767e6..6cbc4e10bfa8 100644
--- a/drivers/acpi/acpica/hwesleep.c
+++ b/drivers/acpi/acpica/hwesleep.c
@@ -59,7 +59,7 @@ MODULE_PARM_DESC(bfs, "Enable evaluation of _BFS on resume".);
59 * 59 *
60 * FUNCTION: acpi_hw_execute_sleep_method 60 * FUNCTION: acpi_hw_execute_sleep_method
61 * 61 *
62 * PARAMETERS: method_name - Pathname of method to execute 62 * PARAMETERS: method_pathname - Pathname of method to execute
63 * integer_argument - Argument to pass to the method 63 * integer_argument - Argument to pass to the method
64 * 64 *
65 * RETURN: None 65 * RETURN: None
@@ -68,7 +68,7 @@ MODULE_PARM_DESC(bfs, "Enable evaluation of _BFS on resume".);
68 * and no return value. 68 * and no return value.
69 * 69 *
70 ******************************************************************************/ 70 ******************************************************************************/
71void acpi_hw_execute_sleep_method(char *method_name, u32 integer_argument) 71void acpi_hw_execute_sleep_method(char *method_pathname, u32 integer_argument)
72{ 72{
73 struct acpi_object_list arg_list; 73 struct acpi_object_list arg_list;
74 union acpi_object arg; 74 union acpi_object arg;
@@ -76,10 +76,10 @@ void acpi_hw_execute_sleep_method(char *method_name, u32 integer_argument)
76 76
77 ACPI_FUNCTION_TRACE(hw_execute_sleep_method); 77 ACPI_FUNCTION_TRACE(hw_execute_sleep_method);
78 78
79 if (!ACPI_STRCMP(METHOD_NAME__GTS, method_name) && !gts) 79 if (!ACPI_STRCMP(METHOD_PATHNAME__GTS, method_pathname) && !gts)
80 return_VOID; 80 return_VOID;
81 81
82 if (!ACPI_STRCMP(METHOD_NAME__BFS, method_name) && !bfs) 82 if (!ACPI_STRCMP(METHOD_PATHNAME__BFS, method_pathname) && !bfs)
83 return_VOID; 83 return_VOID;
84 84
85 /* One argument, integer_argument; No return value expected */ 85 /* One argument, integer_argument; No return value expected */
@@ -89,10 +89,10 @@ void acpi_hw_execute_sleep_method(char *method_name, u32 integer_argument)
89 arg.type = ACPI_TYPE_INTEGER; 89 arg.type = ACPI_TYPE_INTEGER;
90 arg.integer.value = (u64)integer_argument; 90 arg.integer.value = (u64)integer_argument;
91 91
92 status = acpi_evaluate_object(NULL, method_name, &arg_list, NULL); 92 status = acpi_evaluate_object(NULL, method_pathname, &arg_list, NULL);
93 if (ACPI_FAILURE(status) && status != AE_NOT_FOUND) { 93 if (ACPI_FAILURE(status) && status != AE_NOT_FOUND) {
94 ACPI_EXCEPTION((AE_INFO, status, "While executing method %s", 94 ACPI_EXCEPTION((AE_INFO, status, "While executing method %s",
95 method_name)); 95 method_pathname));
96 } 96 }
97 97
98 return_VOID; 98 return_VOID;
@@ -138,7 +138,7 @@ acpi_status acpi_hw_extended_sleep(u8 sleep_state)
138 138
139 /* Execute the _GTS method (Going To Sleep) */ 139 /* Execute the _GTS method (Going To Sleep) */
140 140
141 acpi_hw_execute_sleep_method(METHOD_NAME__GTS, sleep_state); 141 acpi_hw_execute_sleep_method(METHOD_PATHNAME__GTS, sleep_state);
142 142
143 /* Flush caches, as per ACPI specification */ 143 /* Flush caches, as per ACPI specification */
144 144
@@ -208,7 +208,7 @@ acpi_status acpi_hw_extended_wake_prep(u8 sleep_state)
208 &acpi_gbl_FADT.sleep_control); 208 &acpi_gbl_FADT.sleep_control);
209 } 209 }
210 210
211 acpi_hw_execute_sleep_method(METHOD_NAME__BFS, sleep_state); 211 acpi_hw_execute_sleep_method(METHOD_PATHNAME__BFS, sleep_state);
212 return_ACPI_STATUS(AE_OK); 212 return_ACPI_STATUS(AE_OK);
213} 213}
214 214
@@ -235,8 +235,8 @@ acpi_status acpi_hw_extended_wake(u8 sleep_state)
235 235
236 /* Execute the wake methods */ 236 /* Execute the wake methods */
237 237
238 acpi_hw_execute_sleep_method(METHOD_NAME__SST, ACPI_SST_WAKING); 238 acpi_hw_execute_sleep_method(METHOD_PATHNAME__SST, ACPI_SST_WAKING);
239 acpi_hw_execute_sleep_method(METHOD_NAME__WAK, sleep_state); 239 acpi_hw_execute_sleep_method(METHOD_PATHNAME__WAK, sleep_state);
240 240
241 /* 241 /*
242 * Some BIOS code assumes that WAK_STS will be cleared on resume 242 * Some BIOS code assumes that WAK_STS will be cleared on resume
@@ -246,6 +246,6 @@ acpi_status acpi_hw_extended_wake(u8 sleep_state)
246 (void)acpi_write(ACPI_X_WAKE_STATUS, &acpi_gbl_FADT.sleep_status); 246 (void)acpi_write(ACPI_X_WAKE_STATUS, &acpi_gbl_FADT.sleep_status);
247 acpi_gbl_system_awake_and_running = TRUE; 247 acpi_gbl_system_awake_and_running = TRUE;
248 248
249 acpi_hw_execute_sleep_method(METHOD_NAME__SST, ACPI_SST_WORKING); 249 acpi_hw_execute_sleep_method(METHOD_PATHNAME__SST, ACPI_SST_WORKING);
250 return_ACPI_STATUS(AE_OK); 250 return_ACPI_STATUS(AE_OK);
251} 251}