Permalink
Browse files

update oc routine

  • Loading branch information...
sakuramilk committed Oct 4, 2011
1 parent 2935480 commit ef0169925d3a88ac614b4d645cc9f88ee44efdd3
@@ -38,7 +38,7 @@ CONFIG_EXPERIMENTAL=y
CONFIG_LOCK_KERNEL=y
CONFIG_INIT_ENV_ARG_LIMIT=32
CONFIG_CROSS_COMPILE=""
CONFIG_LOCALVERSION="-SC02C-SKLMLK-V1.4.5"
CONFIG_LOCALVERSION="-SC02C-SKLMLK-V1.4.6"
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_HAVE_KERNEL_GZIP=y
CONFIG_HAVE_KERNEL_LZMA=y
@@ -109,8 +109,8 @@ CONFIG_SYSCTL_SYSCALL=y
CONFIG_KALLSYMS=y
# CONFIG_KALLSYMS_EXTRA_PASS is not set
CONFIG_HOTPLUG=y
# CONFIG_PRINTK is not set
# CONFIG_SEC_LOG is not set
#CONFIG_PRINTK is not set
#CONFIG_SEC_LOG is not set
CONFIG_BUG=y
CONFIG_ELF_CORE=y
CONFIG_BASE_FULL=y
@@ -782,8 +782,13 @@ static int s5pv310_target(struct cpufreq_policy *policy,
}
if (!strncmp(policy->governor->name, "ondemand", CPUFREQ_NAME_LEN)
|| !strncmp(policy->governor->name, "ondemandx", CPUFREQ_NAME_LEN)
|| !strncmp(policy->governor->name, "conservative", CPUFREQ_NAME_LEN)
|| !strncmp(policy->governor->name, "interactive", CPUFREQ_NAME_LEN)
|| !strncmp(policy->governor->name, "interactiveX", CPUFREQ_NAME_LEN)
|| !strncmp(policy->governor->name, "smartass", CPUFREQ_NAME_LEN)
|| !strncmp(policy->governor->name, "smartassV2", CPUFREQ_NAME_LEN)
|| !strncmp(policy->governor->name, "lagfree", CPUFREQ_NAME_LEN)
) {
check_gov = 1;
if (relation & ENABLE_FURTHER_CPUFREQ)
@@ -833,7 +838,8 @@ static int s5pv310_target(struct cpufreq_policy *policy,
#endif
switch (index) {
case L0: {
if (old_index > L7) index = L7;
if (old_index > L8) index = L8;
else if (old_index > L7) index = L7;
else if (old_index > L6) index = L6;
else if (old_index > L5) index = L5;
else if (old_index > L4) index = L4;
@@ -843,7 +849,8 @@ static int s5pv310_target(struct cpufreq_policy *policy,
} break;
case L1: {
if (old_index > L7) index = L7;
if (old_index > L8) index = L8;
else if (old_index > L7) index = L7;
else if (old_index > L6) index = L6;
else if (old_index > L5) index = L5;
else if (old_index > L4) index = L4;
@@ -852,33 +859,42 @@ static int s5pv310_target(struct cpufreq_policy *policy,
} break;
case L2: {
if (old_index > L7) index = L7;
if (old_index > L8) index = L8;
else if (old_index > L7) index = L7;
else if (old_index > L6) index = L6;
else if (old_index > L5) index = L5;
else if (old_index > L4) index = L4;
else if (old_index > L3) index = L3;
} break;
case L3: {
if (old_index > L7) index = L7;
if (old_index > L8) index = L8;
else if (old_index > L7) index = L7;
else if (old_index > L6) index = L6;
else if (old_index > L5) index = L5;
else if (old_index > L4) index = L4;
} break;
case L4: {
if (old_index > L7) index = L7;
if (old_index > L8) index = L8;
else if (old_index > L7) index = L7;
else if (old_index > L6) index = L6;
else if (old_index > L5) index = L5;
} break;
case L5: {
if (old_index > L7) index = L7;
if (old_index > L8) index = L8;
else if (old_index > L7) index = L7;
else if (old_index > L6) index = L6;
} break;
case L6: {
if (old_index > L7) index = L7;
if (old_index > L8) index = L8;
else if (old_index > L7) index = L7;
} break;
case L7: {
if (old_index > L8) index = L8;
} break;
}
} else {
@@ -1485,6 +1501,7 @@ static int s5pv310_cpufreq_cpu_init(struct cpufreq_policy *policy)
/* set safe default min and max speeds - netarchy */
policy->max = CUST_ARM_CLK_DEFAULT_MAX;
policy->min = CUST_ARM_CLK_DEFAULT_MIN;
return ret;
}
@@ -22,8 +22,8 @@ enum cpufreq_level_request{
CPU_L5, /* 800MHz */
CPU_L6, /* 500MHz */
CPU_L7, /* 200MHz */
CPU_L8, /* 100MHz */
CPU_L9, /* 50MHz */
CPU_L8, /* 160MHz */
CPU_L9, /* 100MHz */
CPU_LEVEL_END,
};
View
@@ -77,19 +77,19 @@
#define CUST_CLKDIV_CPU1_L7 { 3, 0 }
#define CUST_APLL_PMS_L7 ( ((200<<16)|(6<<8)|(0x3)) ) // 1000
#define CUST_ARM_CLK_L8 ( 100000)
#define CUST_ARM_V_L8 ( 900000)
#define CUST_ARM_CLK_L8 ( 160000)
#define CUST_ARM_V_L8 ( 950000)
#define CUST_INT_V_L8 (1000000)
#define CUST_CLKDIV_CPU0_L8 { 0, 1, 3, 1, 3, 1, 7 }
#define CUST_CLKDIV_CPU1_L8 { 3, 0 }
#define CUST_APLL_PMS_L8 ( ((100<<16)|(6<<8)|(0x3)) ) // 1000
#define CUST_APLL_PMS_L8 ( ((160<<16)|(6<<8)|(0x3)) ) // 1000
#define CUST_ARM_CLK_L9 ( 50000)
#define CUST_ARM_V_L9 ( 850000)
#define CUST_ARM_CLK_L9 ( 100000)
#define CUST_ARM_V_L9 ( 900000)
#define CUST_INT_V_L9 (1000000)
#define CUST_CLKDIV_CPU0_L9 { 0, 1, 3, 1, 3, 1, 7 }
#define CUST_CLKDIV_CPU1_L9 { 3, 0 }
#define CUST_APLL_PMS_L9 ( (( 50<<16)|(6<<8)|(0x3)) ) // 1000
#define CUST_APLL_PMS_L9 ( ((100<<16)|(6<<8)|(0x3)) ) // 1000
#define CUST_SUSPEND_CLK_L L5 // set 800MHz
#define CUST_REBOOT_CLK_L L3 // set 1200MHz

0 comments on commit ef01699

Please sign in to comment.