1. 26 10月, 2013 1 次提交
    • V
      cpufreq: Implement light weight ->target_index() routine · 9c0ebcf7
      Viresh Kumar 提交于
      Currently, the prototype of cpufreq_drivers target routines is:
      
      int target(struct cpufreq_policy *policy, unsigned int target_freq,
      		unsigned int relation);
      
      And most of the drivers call cpufreq_frequency_table_target() to get a valid
      index of their frequency table which is closest to the target_freq. And they
      don't use target_freq and relation after that.
      
      So, it makes sense to just do this work in cpufreq core before calling
      cpufreq_frequency_table_target() and simply pass index instead. But this can be
      done only with drivers which expose their frequency table with cpufreq core. For
      others we need to stick with the old prototype of target() until those drivers
      are converted to expose frequency tables.
      
      This patch implements the new light weight prototype for target_index() routine.
      It looks like this:
      
      int target_index(struct cpufreq_policy *policy, unsigned int index);
      
      CPUFreq core will call cpufreq_frequency_table_target() before calling this
      routine and pass index to it. Because CPUFreq core now requires to call routines
      present in freq_table.c CONFIG_CPU_FREQ_TABLE must be enabled all the time.
      
      This also marks target() interface as deprecated. So, that new drivers avoid
      using it. And Documentation is updated accordingly.
      
      It also converts existing .target() to newly defined light weight
      .target_index() routine for many driver.
      Acked-by: NHans-Christian Egtvedt <egtvedt@samfundet.no>
      Acked-by: NJesper Nilsson <jesper.nilsson@axis.com>
      Acked-by: NLinus Walleij <linus.walleij@linaro.org>
      Acked-by: NRussell King <linux@arm.linux.org.uk>
      Acked-by: NDavid S. Miller <davem@davemloft.net>
      Tested-by: NAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: NViresh Kumar <viresh.kumar@linaro.org>
      Signed-off-by: NRafael J. Wysocki <rjw@rjwysocki.net>
      9c0ebcf7
  2. 16 10月, 2013 4 次提交
  3. 01 10月, 2013 1 次提交
  4. 24 6月, 2013 1 次提交
  5. 08 4月, 2013 1 次提交
  6. 02 4月, 2013 3 次提交
  7. 05 5月, 2012 1 次提交
  8. 13 3月, 2012 1 次提交
  9. 01 11月, 2011 1 次提交
  10. 04 5月, 2011 1 次提交
    • D
      [CPUFREQ] use dynamic debug instead of custom infrastructure · 2d06d8c4
      Dominik Brodowski 提交于
      With dynamic debug having gained the capability to report debug messages
      also during the boot process, it offers a far superior interface for
      debug messages than the custom cpufreq infrastructure. As a first step,
      remove the old cpufreq_debug_printk() function and replace it with a call
      to the generic pr_debug() function.
      
      How can dynamic debug be used on cpufreq? You need a kernel which has
      CONFIG_DYNAMIC_DEBUG enabled.
      
      To enabled debugging during runtime, mount debugfs and
      
      $ echo -n 'module cpufreq +p' > /sys/kernel/debug/dynamic_debug/control
      
      for debugging the complete "cpufreq" module. To achieve the same goal during
      boot, append
      
      	ddebug_query="module cpufreq +p"
      
      as a boot parameter to the kernel of your choice.
      
      For more detailled instructions, please see
      Documentation/dynamic-debug-howto.txt
      Signed-off-by: NDominik Brodowski <linux@dominikbrodowski.net>
      Signed-off-by: NDave Jones <davej@redhat.com>
      2d06d8c4
  11. 31 3月, 2011 1 次提交
  12. 01 3月, 2011 1 次提交
    • A
      davinci: cpufreq: fix section mismatch warning · 079db590
      Axel Lin 提交于
      Fix below section mismatch warning:
      WARNING: vmlinux.o(.data+0x673c): Section mismatch in reference from the variable davinci_driver to the function .init.text:davinci_cpu_init()
      The variable davinci_driver references
      the function __init davinci_cpu_init()
      If the reference is valid then annotate the
      variable with __init* or __refdata (see linux/init.h) or name the variable:
      *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,
      Signed-off-by: NAxel Lin <axel.lin@gmail.com>
      Acked-by: NSekhar Nori <nsekhar@ti.com>
      Signed-off-by: NKevin Hilman <khilman@ti.com>
      079db590
  13. 24 9月, 2010 2 次提交
    • S
      davinci: cpufreq: add support for keeping an additional clock constant · 30a2c5d2
      Sekhar Nori 提交于
      On OMAP-L138 SoC, some of the sysclks need not be at a fixed ratio
      to CPU clock and can be kept at a relatively constant rate by
      adjusting the PLLDIVn ratio even as cpufreq goes ahead and changes
      the CPU clock.
      
      This feature can be used to keep the EMIFA (PLL0 SYSCLK3) clock at a
      constant rate so that the EMIF timings need not be re-programmed
      whenever the CPU frequency changes.
      
      This patch adds the required suppport to cpufreq driver.
      Signed-off-by: NSekhar Nori <nsekhar@ti.com>
      Signed-off-by: NKevin Hilman <khilman@deeprootsystems.com>
      30a2c5d2
    • S
      davinci: cpufreq: bailout on regulator errors · fca97b33
      Sekhar Nori 提交于
      Current cpufreq code does not consider errors that can occur while
      changing voltage. Code to increase CPU  frequency goes ahead even in
      the case the regulator has failed to increase the voltage. This leads
      to hard error since lower voltages cannot support increased frequency.
      
      Prevent this by not increasing frequency in case increasing voltage
      is not successful.
      
      Also, do not lower the voltage if changing the cpu frequency has failed
      for some reason.
      
      Note that we do not return error on failure to decrease voltage as
      that is not a hard error.
      
      Build fix for non-cpufreq kernels by Caglar Akyuz.
      Signed-off-by: NSekhar Nori <nsekhar@ti.com>
      Cc: Caglar Akyuz <caglar@bilkon-kontrol.com.tr>
      Signed-off-by: NKevin Hilman <khilman@deeprootsystems.com>
      fca97b33
  14. 26 11月, 2009 2 次提交