android_kernel_xiaomi_sm8450/include/soc/qcom/subsystem_sleep_stats.h
Minghao Zhang 1399dd09d6 soc: qcom: Add has_system/subsystem_slept() APIs
This change provides two APIs to check system and subsystem
has entered sleep or not. These can be used to know after
kernel resume which subsystem may have blocked AOSD/CXSD/DDR
sleep.

Change-Id: I19d56c1415116ff82b206b931092ed123e8d4a69
Signed-off-by: Minghao Zhang <quic_minghao@quicinc.com>
2021-12-09 10:50:22 +08:00

13 lines
350 B
C

/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
*/
#ifndef __SUBSYSTEM_SLEEP_STATS_H__
#define __SUBSYSTEM_SLEEP_STATS_H__
bool has_system_slept(void);
bool has_subsystem_slept(void);
void subsystem_sleep_debug_enable(bool enable);
#endif /*__SUBSYSTEM_SLEEP_STATS_H__ */