1. 25 Jun, 2007 5 commits
    • Nathan Lynch's avatar
      [POWERPC] Remove spinlock from struct cpu_purr_data · df211c8a
      Nathan Lynch authored
      cpu_purr_data is a per-cpu array used to account for stolen time on
      partitioned systems.  It used to be the case that cpus accessed each
      others' cpu_purr_data, so each entry was protected by a spinlock.
      
      However, the code was reworked ("Simplify stolen time calculation")
      with the result that each cpu accesses its own cpu_purr_data and not
      those of other cpus.  This means we can get rid of the spinlock as
      long as we're careful to disable interrupts when accessing
      cpu_purr_data in process context.
      Signed-off-by: default avatarNathan Lynch <ntl@pobox.com>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      df211c8a
    • Guennadi Liakhovetski's avatar
      [POWERPC] Don't link timer.o for powerpc systems using generic rtc · 1a06e0fe
      Guennadi Liakhovetski authored
      With both generic rtc and powerpc timer suspend / resume code now in the
      (powerpc.git) tree, powerpc platforms using the generic timer and enabling
      power management will have timer.o linked in the kernel, which they don't
      need. Moreover, it will likely WARN_ON(!ppc_md.get_rtc_time), save
      zero-time and return no error on suspend...
      
      As a possible solution we can choose not to build timer.o when RTC_CLASS
      is enabled.  However, I can imagine systems with 2 rtc's, one served by the
      ppc-rtc, another one generic built as a module, in which case using the
      ppc-rtc for suspend / resume will be impossible.  Not to say, that such a
      configuration would be ugly...
      Signed-off-by: default avatarG. Liakhovetski <g.liakhovetski@gmx.de>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      1a06e0fe
    • Olof Johansson's avatar
      [POWERPC] pasemi: Electra IDE/pata_platform glue · 8fa336d8
      Olof Johansson authored
      Glue code to hook up the pata_platform on the PA Semi Electra eval board.
      CFE sets up device tree entries for the IDE interface, with device type
      'ide' and compatible field 'electra-ide'.
      
      We unfortunately need to modify the resources before calling the generic
      platform driver, since the device tree only has one register window in
      it and the driver expects two.  Adding this as an of_platform driver
      instead doesn't give us any benefit, it just adds one more layer of
      register/probe functions.
      
      Since CONFIG_PATA_PLATFORM depends on CONFIG_EMBEDDED, add that as a
      default for PPC_PASEMI.
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      8fa336d8
    • Johannes Berg's avatar
      [POWERPC] Use mktime in timer sysdev · 0c358e70
      Johannes Berg authored
      This makes the timer sysdev use mktime instead of rtc_tm_to_time,
      since rtc_tm_to_time just calls mktime anyway, and this means we
      don't have a dependency on rtc-lib.
      Signed-off-by: default avatarJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      0c358e70
    • Milton Miller's avatar
      [POWERPC] kexec: Send slaves to new kernel earlier · ee46a90b
      Milton Miller authored
      With this, when kexec-ing, we copy the code and start the slaves on
      their journey to the next kernel's spin loop as soon as we copy the
      kexec image into place.
      
      The kernel doesn't know exactly which slaves are spinning in
      kexec_wait.  This allows us to pass more than max-cpus to the
      next kernel.  But it also means that we might leave some behind.
      
      Moving the code here means they have the time it takes us to
      clear the hash table to wake up and move on.  Moving the code
      any earlier would reuqire walking the image description to
      search for the code, which could span multiple pages.
      Signed-off-by: default avatarMilton Miller <miltonm@bga.com>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      ee46a90b
  2. 14 Jun, 2007 35 commits