1. 07 4月, 2014 1 次提交
    • C
      cpufreq: unicore32: fix typo issue for 'clk' · b4ddad95
      Chen Gang 提交于
      Need use 'clk' instead of 'mclk', which is the original removed local
      variable.
      
      The related original commit:
      
        "652ed95d cpufreq: introduce cpufreq_generic_get() routine"
      
      The related error with allmodconfig for unicore32:
      
          CC      drivers/cpufreq/unicore2-cpufreq.o
        drivers/cpufreq/unicore2-cpufreq.c: In function ‘ucv2_target’:
        drivers/cpufreq/unicore2-cpufreq.c:48: error: ‘struct cpufreq_policy’ has no member named ‘mclk’
        make[2]: *** [drivers/cpufreq/unicore2-cpufreq.o] Error 1
        make[1]: *** [drivers/cpufreq] Error 2
        make: *** [drivers] Error 2
      
      Fixes: 652ed95d (cpufreq: introduce cpufreq_generic_get() routine)
      Signed-off-by: NChen Gang <gang.chen.5i5j@gmail.com>
      Acked-by: NViresh Kumar <viresh.kumar@linaro.org>
      Cc: 3.14+ <stable@vger.kernel.org> # 3.14+
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      b4ddad95
  2. 26 3月, 2014 1 次提交
  3. 17 1月, 2014 1 次提交
  4. 06 1月, 2014 1 次提交
    • V
      cpufreq: send new set of notification for transition failures · ab1b1c4e
      Viresh Kumar 提交于
      In the current code, if we fail during a frequency transition, we
      simply send the POSTCHANGE notification with the old frequency. This
      isn't enough.
      
      One of the core users of these notifications is the code responsible
      for keeping loops_per_jiffy aligned with frequency changes. And mostly
      it is written as:
      
      	if ((val == CPUFREQ_PRECHANGE  && freq->old < freq->new) ||
      	    (val == CPUFREQ_POSTCHANGE && freq->old > freq->new)) {
      		update-loops-per-jiffy...
      	}
      
      So, suppose we are changing to a higher frequency and failed during
      transition, then following will happen:
      - CPUFREQ_PRECHANGE notification with freq-new > freq-old
      - CPUFREQ_POSTCHANGE notification with freq-new == freq-old
      
      The first one will update loops_per_jiffy and second one will do
      nothing. Even if we send the 2nd notification by exchanging values of
      freq-new and old, some users of these notifications might get
      unstable.
      
      This can be fixed by simply calling cpufreq_notify_post_transition()
      with error code and this routine will take care of sending
      notifications in the correct order.
      Signed-off-by: NViresh Kumar <viresh.kumar@linaro.org>
      [rjw: Folded 3 patches into one, rebased unicore2 changes]
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      ab1b1c4e
  5. 16 10月, 2013 2 次提交
  6. 15 8月, 2013 1 次提交
  7. 10 4月, 2013 1 次提交
  8. 02 4月, 2013 1 次提交
  9. 17 3月, 2011 1 次提交