ANDROID: power: fix vendor hook in suspend.c

Fix the position of the trace point.

Bug: 241946090
Fixes: 737a5314c9 ("ANDROID: power: Add vendor hook for suspend")
Signed-off-by: Ziyi Cui <ziyic@google.com>
Change-Id: I8bf231ee35e0c0ebcb35722f4c527ab61116901e
This commit is contained in:
Ziyi Cui
2022-08-25 17:55:19 +00:00
committed by Todd Kjos
parent 7108d9d0e5
commit ee742bccf6

View File

@@ -440,7 +440,6 @@ static int suspend_enter(suspend_state_t state, bool *wakeup)
BUG_ON(!irqs_disabled());
system_state = SYSTEM_SUSPEND;
trace_android_vh_early_resume_begin(NULL);
error = syscore_suspend();
if (!error) {
*wakeup = pm_wakeup_pending();
@@ -450,6 +449,7 @@ static int suspend_enter(suspend_state_t state, bool *wakeup)
error = suspend_ops->enter(state);
trace_suspend_resume(TPS("machine_suspend"),
state, false);
trace_android_vh_early_resume_begin(NULL);
} else if (*wakeup) {
error = -EBUSY;
}