aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/sleep.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rjw@sisk.pl>2010-04-08 19:40:38 -0400
committerLen Brown <len.brown@intel.com>2010-05-28 23:36:06 -0400
commitfe955682d2153b35dffcf1673dff0491096a3f0a (patch)
treefb2e04c48bb89e19b6b2c274daa817b3cf09bd4e /drivers/acpi/sleep.c
parentd5a64513c6a171262082c250592c062e97a2c693 (diff)
ACPI / EC / PM: Fix names of functions that block/unblock EC transactions
The names of the functions used for blocking/unblocking EC transactions during suspend/hibernation suggest that the transactions are suspended and resumed by them, while in fact they are disabled and enabled. Rename the functions (and the flag used by them) to better reflect what they really do. Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/sleep.c')
-rw-r--r--drivers/acpi/sleep.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/acpi/sleep.c b/drivers/acpi/sleep.c
index 24741ac65897..504a55edac49 100644
--- a/drivers/acpi/sleep.c
+++ b/drivers/acpi/sleep.c
@@ -116,7 +116,7 @@ static int acpi_pm_freeze(void)
116{ 116{
117 acpi_disable_all_gpes(); 117 acpi_disable_all_gpes();
118 acpi_os_wait_events_complete(NULL); 118 acpi_os_wait_events_complete(NULL);
119 acpi_ec_suspend_transactions(); 119 acpi_ec_block_transactions();
120 return 0; 120 return 0;
121} 121}
122 122
@@ -279,7 +279,7 @@ static int acpi_suspend_enter(suspend_state_t pm_state)
279 */ 279 */
280 acpi_disable_all_gpes(); 280 acpi_disable_all_gpes();
281 /* Allow EC transactions to happen. */ 281 /* Allow EC transactions to happen. */
282 acpi_ec_resume_transactions_early(); 282 acpi_ec_unblock_transactions_early();
283 283
284 local_irq_restore(flags); 284 local_irq_restore(flags);
285 printk(KERN_DEBUG "Back to C!\n"); 285 printk(KERN_DEBUG "Back to C!\n");
@@ -293,7 +293,7 @@ static int acpi_suspend_enter(suspend_state_t pm_state)
293 293
294static void acpi_suspend_finish(void) 294static void acpi_suspend_finish(void)
295{ 295{
296 acpi_ec_resume_transactions(); 296 acpi_ec_unblock_transactions();
297 acpi_pm_finish(); 297 acpi_pm_finish();
298} 298}
299 299
@@ -597,7 +597,7 @@ static int acpi_hibernation_enter(void)
597static void acpi_hibernation_finish(void) 597static void acpi_hibernation_finish(void)
598{ 598{
599 hibernate_nvs_free(); 599 hibernate_nvs_free();
600 acpi_ec_resume_transactions(); 600 acpi_ec_unblock_transactions();
601 acpi_pm_finish(); 601 acpi_pm_finish();
602} 602}
603 603
@@ -619,12 +619,12 @@ static void acpi_hibernation_leave(void)
619 /* Restore the NVS memory area */ 619 /* Restore the NVS memory area */
620 hibernate_nvs_restore(); 620 hibernate_nvs_restore();
621 /* Allow EC transactions to happen. */ 621 /* Allow EC transactions to happen. */
622 acpi_ec_resume_transactions_early(); 622 acpi_ec_unblock_transactions_early();
623} 623}
624 624
625static void acpi_pm_thaw(void) 625static void acpi_pm_thaw(void)
626{ 626{
627 acpi_ec_resume_transactions(); 627 acpi_ec_unblock_transactions();
628 acpi_enable_all_runtime_gpes(); 628 acpi_enable_all_runtime_gpes();
629} 629}
630 630