Add samsung specific changes

This commit is contained in:
2025-08-11 14:29:00 +02:00
parent c66122e619
commit 4d134a1294
2688 changed files with 1127995 additions and 11475 deletions

View File

@@ -27,13 +27,11 @@
#include <linux/syscore_ops.h>
#include <linux/swait.h>
#include <linux/ftrace.h>
#include <linux/rtc.h>
#include <trace/events/power.h>
#include <linux/compiler.h>
#include <linux/moduleparam.h>
#include <linux/wakeup_reason.h>
#include <trace/hooks/suspend.h>
#include <linux/regulator/machine.h>
#include "power.h"
@@ -425,9 +423,6 @@ static int suspend_enter(suspend_state_t state, bool *wakeup)
suspend_stats.failed_devs[last_dev]);
goto Platform_finish;
}
regulator_show_enabled();
error = platform_suspend_prepare_late(state);
if (error)
goto Devices_early_resume;
@@ -632,18 +627,6 @@ static int enter_state(suspend_state_t state)
return error;
}
static void pm_suspend_marker(char *annotation)
{
struct timespec64 ts;
struct rtc_time tm;
ktime_get_real_ts64(&ts);
rtc_time64_to_tm(ts.tv_sec, &tm);
pr_info("suspend %s %d-%02d-%02d %02d:%02d:%02d.%09lu UTC\n",
annotation, tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday,
tm.tm_hour, tm.tm_min, tm.tm_sec, ts.tv_nsec);
}
/**
* pm_suspend - Externally visible function for suspending the system.
* @state: System sleep state to enter.
@@ -658,7 +641,7 @@ int pm_suspend(suspend_state_t state)
if (state <= PM_SUSPEND_ON || state >= PM_SUSPEND_MAX)
return -EINVAL;
pm_suspend_marker("entry");
pr_info("suspend entry (%s)\n", mem_sleep_labels[state]);
error = enter_state(state);
if (error) {
suspend_stats.fail++;
@@ -666,7 +649,7 @@ int pm_suspend(suspend_state_t state)
} else {
suspend_stats.success++;
}
pm_suspend_marker("exit");
pr_info("suspend exit\n");
return error;
}
EXPORT_SYMBOL(pm_suspend);