diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-06-12 07:43:08 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-06-12 07:43:08 -0400 |
commit | d715a226b0b3dae48865d05e8c36175a8f75a809 (patch) | |
tree | 996e45c4075f8e3032daeea8de7bd355fde3cc00 /drivers/acpi | |
parent | 589e18a973bd6bb8abd2c6d4d8a1dcf5ae1dff61 (diff) | |
parent | e8bca479c3f269ebb3a3acea5ef63314bb677060 (diff) |
Merge branch 'pm-sleep'
* pm-sleep:
PM / sleep: trace events for device PM callbacks
PM / sleep: trace events for suspend/resume
Diffstat (limited to 'drivers/acpi')
-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); |