]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ENGR00220199 Add CPU governor trigger for GPU2D and GPUVG core
authorRichard Liu <r66033@freescale.com>
Tue, 14 Aug 2012 06:08:29 +0000 (14:08 +0800)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:12:41 +0000 (14:12 +0200)
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
arch/arm/mach-mx6/irq.c
include/linux/cpufreq.h

index 22ca75cbce4371d5695f4d9ec50855c815135a4e..197c451d5fb45760f55684e802a69ac3ef249474 100644 (file)
@@ -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,
index a61416fe63f2b5deba6357137a6ca4365c47b071..a56996226cf385e71d928d710f2812879f86c872 100644 (file)
@@ -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;