1. 25 6月, 2007 5 次提交
    • N
      [POWERPC] Remove spinlock from struct cpu_purr_data · df211c8a
      Nathan Lynch 提交于
      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: NNathan Lynch <ntl@pobox.com>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      df211c8a
    • G
      [POWERPC] Don't link timer.o for powerpc systems using generic rtc · 1a06e0fe
      Guennadi Liakhovetski 提交于
      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: NG. Liakhovetski <g.liakhovetski@gmx.de>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      1a06e0fe
    • O
      [POWERPC] pasemi: Electra IDE/pata_platform glue · 8fa336d8
      Olof Johansson 提交于
      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: NOlof Johansson <olof@lixom.net>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      8fa336d8
    • J
      [POWERPC] Use mktime in timer sysdev · 0c358e70
      Johannes Berg 提交于
      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: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      0c358e70
    • M
      [POWERPC] kexec: Send slaves to new kernel earlier · ee46a90b
      Milton Miller 提交于
      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: NMilton Miller <miltonm@bga.com>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      ee46a90b
  2. 14 6月, 2007 35 次提交