diff options
Diffstat (limited to 'drivers/acpi/sleep.c')
-rw-r--r-- | drivers/acpi/sleep.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/acpi/sleep.c b/drivers/acpi/sleep.c index c11e3795431b..b3e3cc73ba79 100644 --- a/drivers/acpi/sleep.c +++ b/drivers/acpi/sleep.c | |||
@@ -19,6 +19,7 @@ | |||
19 | #include <linux/acpi.h> | 19 | #include <linux/acpi.h> |
20 | #include <linux/module.h> | 20 | #include <linux/module.h> |
21 | #include <asm/io.h> | 21 | #include <asm/io.h> |
22 | #include <trace/events/power.h> | ||
22 | 23 | ||
23 | #include "internal.h" | 24 | #include "internal.h" |
24 | #include "sleep.h" | 25 | #include "sleep.h" |
@@ -501,6 +502,7 @@ static int acpi_suspend_enter(suspend_state_t pm_state) | |||
501 | 502 | ||
502 | ACPI_FLUSH_CPU_CACHE(); | 503 | ACPI_FLUSH_CPU_CACHE(); |
503 | 504 | ||
505 | trace_suspend_resume(TPS("acpi_suspend"), acpi_state, true); | ||
504 | switch (acpi_state) { | 506 | switch (acpi_state) { |
505 | case ACPI_STATE_S1: | 507 | case ACPI_STATE_S1: |
506 | barrier(); | 508 | barrier(); |
@@ -516,6 +518,7 @@ static int acpi_suspend_enter(suspend_state_t pm_state) | |||
516 | pr_info(PREFIX "Low-level resume complete\n"); | 518 | pr_info(PREFIX "Low-level resume complete\n"); |
517 | break; | 519 | break; |
518 | } | 520 | } |
521 | trace_suspend_resume(TPS("acpi_suspend"), acpi_state, false); | ||
519 | 522 | ||
520 | /* This violates the spec but is required for bug compatibility. */ | 523 | /* This violates the spec but is required for bug compatibility. */ |
521 | acpi_write_bit_register(ACPI_BITREG_SCI_ENABLE, 1); | 524 | acpi_write_bit_register(ACPI_BITREG_SCI_ENABLE, 1); |