1. 26 10月, 2013 1 次提交
  2. 15 7月, 2013 1 次提交
    • P
      cpufreq: delete __cpuinit usage from all cpufreq files · 2760984f
      Paul Gortmaker 提交于
      The __cpuinit type of throwaway sections might have made sense
      some time ago when RAM was more constrained, but now the savings
      do not offset the cost and complications.  For example, the fix in
      commit 5e427ec2 ("x86: Fix bit corruption at CPU resume time")
      is a good example of the nasty type of bugs that can be created
      with improper use of the various __init prefixes.
      
      After a discussion on LKML[1] it was decided that cpuinit should go
      the way of devinit and be phased out.  Once all the users are gone,
      we can then finally remove the macros themselves from linux/init.h.
      
      This removes all the drivers/cpufreq uses of the __cpuinit macros
      from all C files.
      
      [1] https://lkml.org/lkml/2013/5/20/589
      
      [v2: leave 2nd lines of args misaligned as requested by Viresh]
      Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
      Cc: Viresh Kumar <viresh.kumar@linaro.org>
      Cc: cpufreq@vger.kernel.org
      Cc: linux-pm@vger.kernel.org
      Acked-by: NDirk Brandewie <dirk.j.brandewie@intel.com>
      Acked-by: NViresh Kumar <viresh.kumar@linaro.org>
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      2760984f
  3. 24 6月, 2013 1 次提交
    • V
      cpufreq: omap: call CPUFREQ_POSTCHANGE notfier in error cases · 44a49a23
      Viresh Kumar 提交于
      PRECHANGE and POSTCHANGE notifiers must be called in groups, i.e either both
      should be called or both shouldn't be.
      
      In case we have started PRECHANGE notifier and found an error, we must call
      POSTCHANGE notifier with freqs.new = freqs.old to guarantee that sequence of
      calling notifiers is complete.
      
      Omap driver was taking care of it well, but wasn't restoring freqs.new to
      freqs.old in some cases. I wasn't required to add code for it as moving
      PRECHANGE notifier down was a better option, so that we call it just before
      starting frequency transition.
      Acked-by: NSantosh Shilimkar <santosh.shilimkar@ti.com>
      Signed-off-by: NViresh Kumar <viresh.kumar@linaro.org>
      44a49a23
  4. 10 4月, 2013 1 次提交
    • N
      cpufreq: OMAP: instantiate omap-cpufreq as a platform_driver · 49ded525
      Nishanth Menon 提交于
      As multi-platform build is being adopted by more and more ARM platforms,
      initcall function should be used very carefully.  For example, when
      CONFIG_ARM_OMAP2PLUS_CPUFREQ is built in the kernel, omap_cpufreq_init()
      will be called on all the platforms to initialize omap-cpufreq driver.
      
      Further, on OMAP, we now use Soc generic cpufreq-cpu0 driver using device
      tree entries.  To allow cpufreq-cpu0 and omap-cpufreq drivers to co-exist
      for OMAP in a single image, we need to ensure the following:
       1. With device tree boot, we use cpufreq-cpu0
       2. With non device tree boot, we use omap-cpufreq
      
      In the case of (1), we will have cpu OPPs and regulator registered
      as part of the device tree nodes, to ensure that omap-cpufreq
      and cpufreq-cpu0 don't conflict in managing the frequency of the
      same CPU, we should not permit omap-cpufreq to be probed.
      
      In the case of (2), we will not have the cpufreq-cpu0 device, hence
      only omap-cpufreq will be active.
      
      To eliminate this undesired these effects, we change omap-cpufreq
      driver to have it instantiated as a platform_driver and register
      "omap-cpufreq" device only when booted without device tree nodes on
      OMAP platforms.
      
      This allows the following:
       a) Will only run on platforms that create the platform_device
          "omap-cpufreq".
       b) Since the platform_device is registered only when device tree nodes
          are *not* populated, omap-cpufreq driver does not conflict with
          the usage of cpufreq-cpu0 driver which is used on OMAP platforms when
          device tree nodes are present.
      
      Inspired by commit 5553f9e2
      (cpufreq: instantiate cpufreq-cpu0 as a platform_driver)
      
      [robherring2@gmail.com: reported conflict of omap-cpufreq vs other
      driver in an non-device tree supported boot]
      Reported-by: NRob Herring <robherring2@gmail.com>
      Signed-off-by: NNishanth Menon <nm@ti.com>
      Acked-by: NViresh Kumar <viresh.kumar@linaro.org>
      Signed-off-by: NKevin Hilman <khilman@linaro.org>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      49ded525
  5. 02 4月, 2013 2 次提交
  6. 02 2月, 2013 1 次提交
  7. 22 1月, 2013 1 次提交
  8. 09 10月, 2012 4 次提交
  9. 20 9月, 2012 1 次提交
  10. 15 9月, 2012 1 次提交
  11. 09 8月, 2012 1 次提交
  12. 29 3月, 2012 1 次提交
  13. 03 3月, 2012 1 次提交
  14. 22 2月, 2012 1 次提交
    • K
      cpufreq: OMAP: scale voltage along with frequency · 53dfe8a8
      Kevin Hilman 提交于
      Use the regulator framework to get the voltage regulator associated
      with the MPU voltage domain and use it to scale voltage along with
      frequency.
      
      While here, CONFIG_CPU_FREQ_DEBUG doesn't exist anymore, so move
      debug prints to use dev_dbg().
      
      Special thanks to Afzal Mohammed for suggestions on more robust error
      checking.
      
      Cc: Afzal Mohammed  <afzal@ti.com>
      Signed-off-by: NKevin Hilman <khilman@ti.com>
      53dfe8a8
  15. 11 11月, 2011 1 次提交
  16. 09 11月, 2011 10 次提交
  17. 03 3月, 2011 1 次提交
    • M
      arm: omap: fix section mismatch warning · 790ab7e9
      Ming Lei 提交于
      WARNING: arch/arm/plat-omap/built-in.o(.data+0x6d4): Section mismatch in reference from the variable omap_driver to the function .init.text:omap_cpu_init()
      The variable omap_driver references
      the function __init omap_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: NMing Lei <tom.leiming@gmail.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      790ab7e9
  18. 09 10月, 2010 1 次提交
    • M
      OMAP: plat-omap: Fix static function warnings · b0a330dc
      Manjunath Kondaiah G 提交于
      This patch fixes sparse warnings due non declarations of static functions.
      
      arch/arm/plat-omap/sram.c:130:13: warning: symbol 'omap_detect_sram' was not declared. Should it be static?
      arch/arm/plat-omap/sram.c:216:13: warning: symbol 'omap_map_sram' was not declared. Should it be static?
      arch/arm/plat-omap/sram.c:450:12: warning: symbol 'omap_sram_init' was not declared. Should it be static?
      arch/arm/plat-omap/sram.c:348:12: warning: symbol 'omap242x_sram_init' was not declared. Should it be static?
      arch/arm/plat-omap/sram.c:369:12: warning: symbol 'omap243x_sram_init' was not declared. Should it be static?
      arch/arm/plat-omap/sram.c:425:12: warning: symbol 'omap34xx_sram_init' was not declared. Should it be static?
      arch/arm/plat-omap/sram.c:441:12: warning: symbol 'omap44xx_sram_init' was not declared. Should it be static
      
      arch/arm/plat-omap/mcbsp.c:36:6: warning: symbol 'omap_mcbsp_write' was not declared. Should it be static?
      arch/arm/plat-omap/mcbsp.c:50:5: warning: symbol 'omap_mcbsp_read' was not declared. Should it be static?
      arch/arm/plat-omap/mcbsp.c:65:6: warning: symbol 'omap_mcbsp_st_write' was not declared. Should it be static?
      arch/arm/plat-omap/mcbsp.c:70:5: warning: symbol 'omap_mcbsp_st_read' was not declared. Should it be static?
      arch/arm/plat-omap/mcbsp.c:1648:15: warning: symbol 'omap_st_add' was not declared. Should it be static?
      
      arch/arm/plat-omap/fb.c:414:15: warning: symbol 'omapfb_reserve_sram' was not declared. Should it be static?
      arch/arm/plat-omap/cpu-omap.c:43:5: warning: symbol 'omap_verify_speed' was not declared. Should it be static?
      arch/arm/plat-omap/cpu-omap.c:61:14: warning: symbol 'omap_getspeed' was not declared. Should it be static?
      Signed-off-by: NManjunath Kondaiah G <manjugk@ti.com>
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: Nishanth Menon <nm@ti.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      b0a330dc
  19. 09 1月, 2010 1 次提交
    • P
      OMAP clock/CPUFreq: add clk_exit_cpufreq_table() · 4e37c10d
      Paul Walmsley 提交于
      A subsequent patch adds code on OMAP2xxx to dynamically allocate the
      CPUFreq frequency table in clk_init_cpufreq_table(), so for it to
      avoid a leak, it will need a corresponding function to free the
      memory.  This patch adds clk_exit_cpufreq_table() with generic
      code to call a chip-specific variant inside the clockfw_lock spinlock via
      struct clk_functions.
      Signed-off-by: NPaul Walmsley <paul@pwsan.com>
      4e37c10d
  20. 12 11月, 2009 1 次提交
  21. 21 10月, 2009 1 次提交
    • T
      omap: headers: Move remaining headers from include/mach to include/plat · ce491cf8
      Tony Lindgren 提交于
      Move the remaining headers under plat-omap/include/mach
      to plat-omap/include/plat. Also search and replace the
      files using these headers to include using the right path.
      
      This was done with:
      
      #!/bin/bash
      mach_dir_old="arch/arm/plat-omap/include/mach"
      plat_dir_new="arch/arm/plat-omap/include/plat"
      headers=$(cd $mach_dir_old && ls *.h)
      omap_dirs="arch/arm/*omap*/ \
      drivers/video/omap \
      sound/soc/omap"
      other_files="drivers/leds/leds-ams-delta.c \
      drivers/mfd/menelaus.c \
      drivers/mfd/twl4030-core.c \
      drivers/mtd/nand/ams-delta.c"
      
      for header in $headers; do
      	old="#include <mach\/$header"
      	new="#include <plat\/$header"
      	for dir in $omap_dirs; do
      		find $dir -type f -name \*.[chS] | \
      			xargs sed -i "s/$old/$new/"
      	done
      	find drivers/ -type f -name \*omap*.[chS] | \
      		xargs sed -i "s/$old/$new/"
      	for file in $other_files; do
      		sed -i "s/$old/$new/" $file
      	done
      done
      
      for header in $(ls $mach_dir_old/*.h); do
      	git mv $header $plat_dir_new/
      done
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      ce491cf8
  22. 06 8月, 2009 1 次提交
  23. 09 2月, 2009 1 次提交
  24. 06 9月, 2008 1 次提交
  25. 07 8月, 2008 2 次提交
  26. 05 3月, 2008 1 次提交
    • H
      ARM: OMAP: Fix sleep under spinlock for cpufreq · b8488fbe
      Hiroshi DOYU 提交于
      [   10.523437] BUG: sleeping function called from invalid context at kernel/mut6
      [   10.523437] in_atomic():0, irqs_disabled():128
      [   10.523437] [<c002c168>] (dump_stack+0x0/0x14) from [<c005374c>] (__might_sl)
      [   10.523437] [<c0053698>] (__might_sleep+0x0/0xd4) from [<c024fdf4>] (mutex_l)
      [   10.523437]  r5 = C02F0DE8  r4 = C02F0DF0
      [   10.523437] [<c024fdd4>] (mutex_lock+0x0/0x44) from [<c0041df4>] (clk_get+0x)
      [   10.523437]  r4 = 00000000
      [   10.523437] [<c0041da4>] (clk_get+0x0/0x128) from [<c0046520>] (omap_getspee)
      [   10.523437]  r8 = 00000002  r7 = 00000000  r6 = C031DAF8  r5 = C0473980
      [   10.523437]  r4 = 00000000
      [   10.523437] [<c00464fc>] (omap_getspeed+0x0/0x5c) from [<c01b8518>] (cpufreq)
      [   10.523437]  r5 = C0473980  r4 = 00000002
      Signed-off-by: NHiroshi DOYU <Hiroshi.DOYU@nokia.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      b8488fbe