Permalink
Browse files

add gov smartassV2 and ondemandx

  • Loading branch information...
sakuramilk committed Oct 15, 2011
1 parent b7e1395 commit f1f05a5bdaa0c6c29e51885708407326decda930
@@ -38,7 +38,7 @@ CONFIG_EXPERIMENTAL=y
CONFIG_LOCK_KERNEL=y
CONFIG_INIT_ENV_ARG_LIMIT=32
CONFIG_CROSS_COMPILE=""
CONFIG_LOCALVERSION="-20111014-NIGHTLY-SKLMLK"
CONFIG_LOCALVERSION="-20111015-NIGHTLY-SKLMLK"
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_HAVE_KERNEL_GZIP=y
CONFIG_HAVE_KERNEL_LZMA=y
@@ -583,14 +583,18 @@ CONFIG_CPU_FREQ_STAT=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMANDX is not set
CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_INTERACTIVE is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_SMARTASS2 is not set
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
# CONFIG_CPU_FREQ_GOV_POWERSAVE is not set
# CONFIG_CPU_FREQ_GOV_USERSPACE is not set
CONFIG_CPU_FREQ_GOV_ONDEMAND=y
CONFIG_CPU_FREQ_GOV_ONDEMANDX=y
# CONFIG_CPU_FREQ_GOV_INTERACTIVE is not set
CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y
CONFIG_CPU_FREQ_GOV_SMARTASS2=y
CONFIG_CPU_IDLE=y
CONFIG_CPU_IDLE_GOV_LADDER=y
CONFIG_CPU_IDLE_GOV_MENU=y
@@ -790,6 +790,8 @@ static int s5pv310_target(struct cpufreq_policy *policy,
if (!strncmp(policy->governor->name, "ondemand", CPUFREQ_NAME_LEN)
|| !strncmp(policy->governor->name, "conservative", CPUFREQ_NAME_LEN)
|| !strncmp(policy->governor->name, "smartassV2", CPUFREQ_NAME_LEN)
|| !strncmp(policy->governor->name, "ondemandx", CPUFREQ_NAME_LEN)
) {
check_gov = 1;
if (relation & ENABLE_FURTHER_CPUFREQ)
@@ -844,8 +846,8 @@ static int s5pv310_target(struct cpufreq_policy *policy,
/*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 > L5) index = L5;
else if (old_index > L4) index = L4;
else if (old_index > L3) index = L3;
else if (old_index > L2) index = L2;
else if (old_index > L1) index = L1;
@@ -855,8 +857,8 @@ static int s5pv310_target(struct cpufreq_policy *policy,
/*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 > L5) index = L5;
else if (old_index > L4) index = L4;
else if (old_index > L3) index = L3;
else if (old_index > L2) index = L2;
} break;
@@ -865,26 +867,26 @@ static int s5pv310_target(struct cpufreq_policy *policy,
/*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 > L5) index = L5;
else if (old_index > L4) index = L4;
else if (old_index > L3) index = L3;
} break;
case L3: {
/*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 > L5) index = L5;
else if (old_index > L4) index = L4;
} break;
#if 0
case L4: {
/*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 > L6) index = L6;
else */if (old_index > L5) index = L5;
} break;
#if 0
case L5: {
/*if (old_index > L8) index = L8;
else if (old_index > L7) index = L7;
View
@@ -177,6 +177,24 @@ config CPU_FREQ_GOV_ONDEMAND
If in doubt, say N.
config CPU_FREQ_GOV_ONDEMANDX
tristate "'ondemandx' cpufreq policy governor"
select CPU_FREQ_TABLE
help
'ondemand' - This driver adds a dynamic cpufreq policy governor.
The governor does a periodic polling and
changes frequency based on the CPU utilization.
The support for this governor depends on CPU capability to
do fast frequency switching (i.e, very low latency frequency
transitions).
To compile this driver as a module, choose M here: the
module will be called cpufreq_ondemand.
For details, take a look at linux/Documentation/cpu-freq.
If in doubt, say N.
config CPU_FREQ_GOV_INTERACTIVE
tristate "'interactive' cpufreq policy governor"
help
@@ -206,4 +224,10 @@ config CPU_FREQ_GOV_CONSERVATIVE
If in doubt, say N.
config CPU_FREQ_GOV_SMARTASS2
tristate "'smartassV2' cpufreq governor"
depends on CPU_FREQ
help
'smartassV2' - a "smart" optimized governor for the pyra!
endif # CPU_FREQ
View
@@ -7,9 +7,11 @@ obj-$(CONFIG_CPU_FREQ_STAT) += cpufreq_stats.o
obj-$(CONFIG_CPU_FREQ_GOV_PERFORMANCE) += cpufreq_performance.o
obj-$(CONFIG_CPU_FREQ_GOV_POWERSAVE) += cpufreq_powersave.o
obj-$(CONFIG_CPU_FREQ_GOV_USERSPACE) += cpufreq_userspace.o
obj-$(CONFIG_CPU_FREQ_GOV_ONDEMAND) += cpufreq_ondemand.o
obj-$(CONFIG_CPU_FREQ_GOV_ONDEMAND) += cpufreq_ondemand.o
obj-$(CONFIG_CPU_FREQ_GOV_ONDEMANDX) += cpufreq_ondemandx.o
obj-$(CONFIG_CPU_FREQ_GOV_CONSERVATIVE) += cpufreq_conservative.o
obj-$(CONFIG_CPU_FREQ_GOV_INTERACTIVE) += cpufreq_interactive.o
obj-$(CONFIG_CPU_FREQ_GOV_SMARTASS2) += cpufreq_smartass2.o
# CPUfreq cross-arch helpers
obj-$(CONFIG_CPU_FREQ_TABLE) += freq_table.o
@@ -30,7 +30,7 @@
*/
#define DEF_FREQUENCY_UP_THRESHOLD (80)
#define DEF_FREQUENCY_DOWN_THRESHOLD (20)
#define DEF_FREQUENCY_DOWN_THRESHOLD (32)
/*
* The polling frequency of this governor depends on the capability of
Oops, something went wrong.

0 comments on commit f1f05a5

Please sign in to comment.