mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
cpuidle: menu: Remove the unused get_loadavg function
The fuction get_loadavg was unused and this also caused a warning during build. This change also removes it from the allowed warnings white-list. Change-Id: I85b184e1eb0ab8b3cf763cab87a30e140d00332b Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
This commit is contained in:
parent
05f14f2edf
commit
365b1170e3
1 changed files with 0 additions and 17 deletions
|
@ -126,14 +126,6 @@ struct menu_device {
|
||||||
#define LOAD_INT(x) ((x) >> FSHIFT)
|
#define LOAD_INT(x) ((x) >> FSHIFT)
|
||||||
#define LOAD_FRAC(x) LOAD_INT(((x) & (FIXED_1-1)) * 100)
|
#define LOAD_FRAC(x) LOAD_INT(((x) & (FIXED_1-1)) * 100)
|
||||||
|
|
||||||
static int get_loadavg(void)
|
|
||||||
{
|
|
||||||
unsigned long this = this_cpu_load();
|
|
||||||
|
|
||||||
|
|
||||||
return LOAD_INT(this) * 10 + LOAD_FRAC(this) / 10;
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline int which_bucket(unsigned int duration)
|
static inline int which_bucket(unsigned int duration)
|
||||||
{
|
{
|
||||||
int bucket = 0;
|
int bucket = 0;
|
||||||
|
@ -171,15 +163,6 @@ static inline int performance_multiplier(void)
|
||||||
{
|
{
|
||||||
int mult = 1;
|
int mult = 1;
|
||||||
|
|
||||||
/* for higher loadavg, we are more reluctant */
|
|
||||||
|
|
||||||
/*
|
|
||||||
* this doesn't work as intended - it is almost always 0, but can
|
|
||||||
* sometimes, depending on workload, spike very high into the hundreds
|
|
||||||
* even when the average cpu load is under 10%.
|
|
||||||
*/
|
|
||||||
/* mult += 2 * get_loadavg(); */
|
|
||||||
|
|
||||||
/* for IO wait tasks (per cpu!) we add 5x each */
|
/* for IO wait tasks (per cpu!) we add 5x each */
|
||||||
mult += 10 * nr_iowait_cpu(smp_processor_id());
|
mult += 10 * nr_iowait_cpu(smp_processor_id());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue