#include <linux/jiffies.h>
-
-static unsigned long current_boot_completed;
#if defined(CONFIG_SLP_BUSY_LEVEL)
int cpu_busy_level;
int la_get_cpu_busy_level(void)
#if defined(CONFIG_SLP_CURRENT_MONITOR)
#define CM_SAVE_DATA_NUM 100
+static unsigned long current_boot_completed;
int save_end_index;
int save_start_index = 1;
int cpu_load_checking(unsigned int cnt)
{
int ret = NOT_BUSY_LOAD;
- unsigned int high_cpufreq, high_usage, amount_usage = 0;
-#if 0
- high_cpufreq = max(cpu_load_freq_history[cnt].cpufreq[0], cpu_load_freq_history[cnt].cpufreq[1]);
- high_cpufreq = max(high_cpufreq, cpu_load_freq_history[cnt].cpufreq[2]);
- high_cpufreq = max(high_cpufreq, cpu_load_freq_history[cnt].cpufreq[3]);
- high_usage = max(cpu_load_freq_history[cnt].cpu_load[0], cpu_load_freq_history[cnt].cpu_load[1]);
- high_usage = max(high_usage, cpu_load_freq_history[cnt].cpu_load[2]);
- high_usage = max(high_usage, cpu_load_freq_history[cnt].cpu_load[3]);
-#endif
+ unsigned int amount_usage = 0;
amount_usage += cpu_load_freq_history[cnt].cpu_load[0];
amount_usage += cpu_load_freq_history[cnt].cpu_load[1];