34 lines
760 B
C
34 lines
760 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (c) 2022 MediaTek Inc.
|
|
*/
|
|
|
|
#define CLUSTER_MAX 10
|
|
#define TOUCH_TIMEOUT_MS 100
|
|
#define TOUCH_FSTB_ACTIVE_MS 100
|
|
#define TOUCH_UP 0
|
|
#define TOUCH_DOWN 1
|
|
|
|
extern int (*fpsgo_get_fstb_active_fp)(long long time_diff);
|
|
extern void (*touch_boost_get_cmd_fp)(int *cmd, int *enable,
|
|
int *deboost_when_render, int *active_time, int *boost_duration,
|
|
int *idleprefer_ta, int *idleprefer_fg, int *util_ta, int *util_fg,
|
|
int *cpufreq_c0, int *cpufreq_c1, int *cpufreq_c2);
|
|
|
|
struct _cpufreq {
|
|
int min;
|
|
int max;
|
|
} _cpufreq;
|
|
|
|
struct boost {
|
|
spinlock_t touch_lock;
|
|
wait_queue_head_t wq;
|
|
struct task_struct *thread;
|
|
int touch_event;
|
|
atomic_t event;
|
|
};
|
|
|
|
enum {
|
|
TOUCH_BOOST_UNKNOWN = -1,
|
|
TOUCH_BOOST_CPU = 0,
|
|
};
|