Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4760ce12 authored by Yue Ma's avatar Yue Ma
Browse files

cnss: Add API to get kernel boot time



Add API to expose kernel boot time which excludes suspend time so that
WLAN host driver can get the time which matches kernel print timestamp.

Change-Id: Ie5e55b405d355f2ac95a1a34c38964ee63c76b65
Signed-off-by: default avatarYue Ma <yuem@codeaurora.org>
parent 0af4da69
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1095,6 +1095,12 @@ void cnss_get_monotonic_boottime(struct timespec *ts)
}
EXPORT_SYMBOL(cnss_get_monotonic_boottime);

void cnss_get_boottime(struct timespec *ts)
{
	ktime_get_ts(ts);
}
EXPORT_SYMBOL(cnss_get_boottime);

int cnss_get_ramdump_mem(unsigned long *address, unsigned long *size)
{
	struct resource *res;
+1 −0
Original line number Diff line number Diff line
@@ -86,6 +86,7 @@ extern int cnss_get_fw_files_for_target(struct cnss_fw_files *pfw_files,
extern void cnss_flush_work(void *work);
extern void cnss_flush_delayed_work(void *dwork);
extern void cnss_get_monotonic_boottime(struct timespec *ts);
extern void cnss_get_boottime(struct timespec *ts);
extern int cnss_request_bus_bandwidth(int bandwidth);

extern void cnss_pm_wake_lock_init(struct wakeup_source *ws, const char *name);