Watch
1
Fork
You've already forked kernel_a52xq
0
mirror of https://github.com/a52xq-dev/kernel.git synced 2026-10-19 06:08:12 +07:00
kernel_a52xq/include/linux/cpufreq_limit.h
2026-09-27 19:03:59 +07:00

32 lines
994 B
C

/*
* Copyright (c) 2012 Samsung Electronics Co., Ltd.
* Minsung Kim <ms925.kim@samsung.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef __LINUX_CPUFREQ_LIMIT_H__
#define __LINUX_CPUFREQ_LIMIT_H__
struct cpufreq_limit_handle {
struct list_head node;
unsigned long freq;
u64 start_msecs;
bool requested;
int id;
char *name;
};
int cpufreq_limit_get(unsigned long freq, struct cpufreq_limit_handle *handle);
int cpufreq_limit_put(struct cpufreq_limit_handle *handle);
ssize_t cpufreq_limit_get_table(char *buf);
struct cpufreq_limit_handle *cpufreq_limit_get_handle(int id);
int cpufreq_limit_get_cur_min(void);
int cpufreq_limit_get_cur_max(void);
unsigned int cpufreq_limit_get_over_limit(void);
void cpufreq_limit_set_over_limit(unsigned int val);
void cpufreq_limit_corectl(int val);
#endif /* __LINUX_CPUFREQ_LIMIT_H__ */