From 942f77bf7cb2fef617e7f4de4ab9ccbd15f3764e Mon Sep 17 00:00:00 2001 From: Richard Liu Date: Tue, 14 Aug 2012 14:08:29 +0800 Subject: [PATCH] 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 Acked-by: Lily Zhang --- arch/arm/mach-mx6/irq.c | 8 ++++++++ include/linux/cpufreq.h | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) 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 @@ -56,6 +56,14 @@ static struct irq_tuner mxc_irq_tuner[] = { .irq_number = 41, /* GPU 3D */ .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, 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; -- 2.39.5