summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Liu <r66033@freescale.com>2012-08-14 14:08:29 +0800
committerRichard Liu <r66033@freescale.com>2012-08-14 14:12:01 +0800
commitf367a5196d8a42522ca8ee9cdf6f26084b395fe2 (patch)
tree85df70377fb94a2d1992ef09fbe1801a910a4951
parentb807706f4e2384a41c35255e34c380ab37c2692e (diff)
ENGR00220199 Add CPU governor trigger for GPU2D and GPUVG core
Add CPU governor trigger for GPU2D and GPUVG core, without these trigger some benchmark show performance drop when enable CPU governor Signed-off-by: Richard Liu <r66033@freescale.com> Acked-by: Lily Zhang
-rw-r--r--arch/arm/mach-mx6/irq.c8
-rw-r--r--include/linux/cpufreq.h2
2 files changed, 9 insertions, 1 deletions
diff --git a/arch/arm/mach-mx6/irq.c b/arch/arm/mach-mx6/irq.c
index 22ca75cbce43..197c451d5fb4 100644
--- a/arch/arm/mach-mx6/irq.c
+++ b/arch/arm/mach-mx6/irq.c
@@ -57,6 +57,14 @@ static struct irq_tuner mxc_irq_tuner[] = {
.up_threshold = 0,
.enable = 1,},
{
+ .irq_number = 42, /* GPU 2D */
+ .up_threshold = 40,
+ .enable = 1,},
+ {
+ .irq_number = 43, /* GPU VG */
+ .up_threshold = 0,
+ .enable = 1,},
+ {
.irq_number = 54, /* uSDHC1 */
.up_threshold = 4,
.enable = 1,},
diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h
index a61416fe63f2..a56996226cf3 100644
--- a/include/linux/cpufreq.h
+++ b/include/linux/cpufreq.h
@@ -73,7 +73,7 @@ extern struct kobject *cpufreq_global_kobject;
* not issue cpu freq change, but the devices' performance will be impacted
* significantly, we need to add irq number check to be as one condition of
* CPU freq change. */
-#define MAX_CPUFREQ_IRQ_NUMBER 10
+#define MAX_CPUFREQ_IRQ_NUMBER 20
struct irq_tuner {
unsigned int irq_number;
unsigned int up_threshold;