This will enable us to more accurately replicate Pixel 4 userspace DDR boosting by adding support for both CPUBW and LLCCBW devices. https://android.googlesource.com/device/google/coral/+/refs/heads/master/init.power.rc https://android.googlesource.com/device/google/coral/+/refs/heads/master/powerhint.json Signed-off-by: idkwhoiam322 <idkwhoiam322@raphielgang.org> Signed-off-by: Adam W. Willis <return.of.octobot@gmail.com> Signed-off-by: Yaroslav Furman <yaro330@gmail.com> Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
36 lines
804 B
C
36 lines
804 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (C) 2018-2019 Sultan Alsawaf <sultan@kerneltoast.com>.
|
|
*/
|
|
#ifndef _DEVFREQ_BOOST_H_
|
|
#define _DEVFREQ_BOOST_H_
|
|
|
|
#include <linux/devfreq.h>
|
|
|
|
enum df_device {
|
|
DEVFREQ_MSM_CPUBW,
|
|
DEVFREQ_MSM_LLCCBW,
|
|
DEVFREQ_MAX
|
|
};
|
|
|
|
#ifdef CONFIG_DEVFREQ_BOOST
|
|
void devfreq_boost_kick(enum df_device device);
|
|
void devfreq_boost_kick_max(enum df_device device, unsigned int duration_ms);
|
|
void devfreq_register_boost_device(enum df_device device, struct devfreq *df);
|
|
#else
|
|
static inline
|
|
void devfreq_boost_kick(enum df_device device)
|
|
{
|
|
}
|
|
static inline
|
|
void devfreq_boost_kick_max(enum df_device device, unsigned int duration_ms)
|
|
{
|
|
}
|
|
static inline
|
|
void devfreq_register_boost_device(enum df_device device, struct devfreq *df)
|
|
{
|
|
}
|
|
#endif
|
|
|
|
#endif /* _DEVFREQ_BOOST_H_ */
|