Files
threeeye bc1d038eac REVVL 6 Pro kernel bring-up: full working tree snapshot (2026-09-12)
Squashed backup commit (no shallow-clone history issues) of
xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream
commit 9eece662e) plus all fixes applied to get everpal_defconfig building
clean against a modern (GCC 15.2.0) toolchain -- see the previous commit
message on the lineage-23.2 branch (also in this repo history is not
available here since this is a squashed snapshot; full incremental history
lives in the local DL380 checkout and the upstream GitHub remote).

Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
2026-09-12 13:36:46 +00:00

32 lines
857 B
C

/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2019 MediaTek Inc.
*/
#ifndef __MTK_LPM_H__
#define __MTK_LPM_H__
#include <linux/cpu_pm.h>
#include <linux/cpuidle.h>
#include <asm/cpuidle.h>
#define MTK_CPUIDLE_PM_NAME "mtk_cpuidle_pm"
struct mtk_cpuidle_op {
/*prompt to platform driver that cpu will enter idle state */
int (*cpuidle_prepare)(struct cpuidle_driver *drv, int index);
/*notify platform driver that cpu will leave idle state */
void (*cpuidle_resume)(struct cpuidle_driver *drv, int index);
};
/*
* Set cpuidle operator for lpm. If the operator have been set before the
* return value will be -EACCES. Must call mtk_lpm_drv_cpuidle_ops_clr()
* when the cpuidle operator need to set new cpuidle operator
*/
int mtk_lpm_drv_cpuidle_ops_set(struct mtk_cpuidle_op *op);
void mtk_lpm_drv_cpuidle_ops_clr(void);
#endif