1. 09 5月, 2014 3 次提交
  2. 08 5月, 2014 2 次提交
  3. 24 11月, 2013 1 次提交
    • J
      ARM: mvebu: fix some sparse warnings · b12634e3
      Jisheng Zhang 提交于
      This patch fixes conflicting types for 'set_cpu_coherent' and fixes the
      following sparse warnings.
      
      arch/arm/mach-mvebu/system-controller.c:42:38:
      warning: symbol 'armada_370_xp_system_controller' was not declared. Should it be static?
      arch/arm/mach-mvebu/system-controller.c:49:38:
      warning: symbol 'orion_system_controller' was not declared. Should it be static?
      arch/arm/mach-mvebu/system-controller.c:67:6:
      warning: symbol 'mvebu_restart' was not declared. Should it be static?
      arch/arm/mach-mvebu/coherency.c:31:15:
      warning: symbol 'coherency_phys_base' was not declared. Should it be static?
      arch/arm/mach-mvebu/coherency.c:48:5:
      warning: symbol 'set_cpu_coherent' was not declared. Should it be static?
      arch/arm/mach-mvebu/coherency.c:123:12:
      warning: symbol 'coherency_init' was not declared. Should it be static?
      arch/arm/mach-mvebu/pmsu.c:38:5: warning:
      symbol 'armada_xp_boot_cpu' was not declared. Should it be static?
      arch/arm/mach-mvebu/pmsu.c:61:12: warning:
      symbol 'armada_370_xp_pmsu_init' was not declared. Should it be static?
      arch/arm/mach-mvebu/platsmp.c:49:13: warning:
      symbol 'set_secondary_cpus_clock' was not declared. Should it be static?
      arch/arm/mach-mvebu/platsmp.c:97:13: warning:
      symbol 'armada_xp_smp_prepare_cpus' was not declared. Should it be static?
      arch/arm/mach-mvebu/hotplug.c:24:12: warning:
      symbol 'armada_xp_cpu_die' was not declared. Should it be static?
      Signed-off-by: NJisheng Zhang <jszhang@marvell.com>
      Acked-by: NGregory CLEMENT <gregory.clement@free-electrons.com>
      Signed-off-by: NJason Cooper <jason@lakedaemon.net>
      b12634e3
  4. 21 8月, 2013 1 次提交
  5. 09 8月, 2013 1 次提交
  6. 06 8月, 2013 1 次提交
  7. 15 7月, 2013 1 次提交
    • P
      arm: delete __cpuinit/__CPUINIT usage from all ARM users · 8bd26e3a
      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.
      
      Note that some harmless section mismatch warnings may result, since
      notify_cpu_starting() and cpu_up() are arch independent (kernel/cpu.c)
      and are flagged as __cpuinit  -- so if we remove the __cpuinit from
      the arch specific callers, we will also get section mismatch warnings.
      As an intermediate step, we intend to turn the linux/init.h cpuinit
      related content into no-ops as early as possible, since that will get
      rid of these warnings.  In any case, they are temporary and harmless.
      
      This removes all the ARM uses of the __cpuinit macros from C code,
      and all __CPUINIT from assembly code.  It also had two ".previous"
      section statements that were paired off against __CPUINIT
      (aka .section ".cpuinit.text") that also get removed here.
      
      [1] https://lkml.org/lkml/2013/5/20/589
      
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: Will Deacon <will.deacon@arm.com>
      Cc: linux-arm-kernel@lists.infradead.org
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      8bd26e3a
  8. 14 6月, 2013 1 次提交
    • T
      arm: mvebu: remove dependency of SMP init on static I/O mapping · b21dcafe
      Thomas Petazzoni 提交于
      The ->smp_init_cpus() function is called very early during boot, at a
      point where dynamic I/O mappings are not yet possible. However, in the
      Armada 370/XP implementation of this function, we have to get the
      number of CPUs. We used to do that by accessing a hardware register,
      which requires relying on a static I/O mapping set up by
      ->map_io(). Not only this requires hardcoding a virtual address, but
      it also prevents us from removing the static I/O mapping.
      
      So this commit changes the way used to get the number of CPUs: we now
      use the Device Tree, which is a representation of the hardware, and
      provides us the number of available CPUs. This is also more accurate,
      because it potentially allows to boot the Linux kernel on only a
      number of CPUs given by the Device Tree, instead of unconditionally on
      all CPUs.
      
      As a consequence, the coherency_get_cpu_count() function becomes no
      longer used, so we remove it.
      Signed-off-by: NThomas Petazzoni <thomas.petazzoni@free-electrons.com>
      Acked-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NJason Cooper <jason@lakedaemon.net>
      b21dcafe
  9. 15 4月, 2013 1 次提交
  10. 21 11月, 2012 1 次提交