]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
intel_pstate: Remove periodic P state boost
authorDirk Brandewie <dirk.j.brandewie@intel.com>
Tue, 17 Dec 2013 17:42:07 +0000 (09:42 -0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 22 Dec 2013 00:04:55 +0000 (01:04 +0100)
Remove the periodic P state boost.  This code required for some corner
case benchmark tests.  The calculation of the required P state was
incorrect/inaccurate and would not allow P state increase.

This was fixed by a combination of commits:
  2134ed4 cpufreq / intel_pstate: Change to scale off of max P-state
  d253d2a intel_pstate: Improve accuracy by not truncating until final result

References: https://bugzilla.kernel.org/show_bug.cgi?id=64271
Reported-by: Doug Smythies <dsmythies@telus.net>
Signed-off-by: Dirk Brandewie <dirk.j.brandewie@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/intel_pstate.c

index c84b280238a4aacf08980392f2ad8caff6abc6fe..41e21bb01c9cae2ae01f7713f9887561515ff143 100644 (file)
@@ -92,8 +92,6 @@ struct cpudata {
        struct vid_data vid;
        struct _pid pid;
 
-       int min_pstate_count;
-
        u64     prev_aperf;
        u64     prev_mperf;
        int     sample_ptr;
@@ -617,15 +615,6 @@ static void intel_pstate_timer_func(unsigned long __data)
 
        intel_pstate_sample(cpu);
        intel_pstate_adjust_busy_pstate(cpu);
-
-       if (cpu->pstate.current_pstate == cpu->pstate.min_pstate) {
-               cpu->min_pstate_count++;
-               if (!(cpu->min_pstate_count % 5)) {
-                       intel_pstate_set_pstate(cpu, cpu->pstate.max_pstate);
-               }
-       } else
-               cpu->min_pstate_count = 0;
-
        intel_pstate_set_sample_time(cpu);
 }