mirror of
https://github.com/a52xq-dev/kernel.git
synced 2026-10-19 06:08:12 +07:00
* this imports the latest version of SM-A526B kernel from https://opensource.samsung.com/uploadSearch?searchValue=SM-A526B
32 lines
994 B
C
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__ */
|