1. 26 7月, 2007 1 次提交
  2. 21 7月, 2007 10 次提交
  3. 03 7月, 2007 15 次提交
  4. 07 6月, 2007 2 次提交
  5. 09 5月, 2007 1 次提交
  6. 24 4月, 2007 6 次提交
  7. 13 4月, 2007 1 次提交
  8. 10 3月, 2007 2 次提交
    • B
      [POWERPC] Fix spu SLB invalidations · 94b2a439
      Benjamin Herrenschmidt 提交于
      The SPU code doesn't properly invalidate SPUs SLBs when necessary,
      for example when changing a segment size from the hugetlbfs code. In
      addition, it saves and restores the SLB content on context switches
      which makes it harder to properly handle those invalidations.
      
      This patch removes the saving & restoring for now, something more
      efficient might be found later on. It also adds a spu_flush_all_slbs(mm)
      that can be used by the core mm code to flush the SLBs of all SPEs that
      are running a given mm at the time of the flush.
      
      In order to do that, it adds a spinlock to the list of all SPEs and move
      some bits & pieces from spufs to spu_base.c
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      94b2a439
    • C
      [POWERPC] avoid SPU_ACTIVATE_NOWAKE optimization · 50b520d4
      Christoph Hellwig 提交于
      This optimization was added recently but is still buggy,
      so back it out for now.
      Signed-off-by: NArnd Bergmann <arnd.bergmann@de.ibm.com>
      50b520d4
  9. 14 2月, 2007 2 次提交
    • C
      [POWERPC] spu sched: static timeslicing for SCHED_RR contexts · 2eb1b120
      Christoph Hellwig 提交于
      For SCHED_RR tasks we can do some really trivial timeslicing.  Basically
      we fire up a time for every scheduler tick that searches for a higher
      or same priority thread that is on the runqueue and if there is one
      context switches to it.  Because we can't lock spus from timer context
      we actually run this from a delayed runqueue instead of a timer.
      
      A nice optimization would be to skip the actual priority bitmap search
      when there are less contexts than physical spus available.  To implement
      this I need a so far unpublished patch from Andre, and it will be added
      after we have that patch in.
      
      Note that right now we only do the time slicing for SCHED_RR tasks.
      The code would work for SCHED_OTHER tasks aswell, but their prio
      value is defered from the one the PPU thread has at time of spu_run,
      and using this for spu scheduling decisions would make the code very
      unfair.  SCHED_OTHER support will be enabled once we the spu scheduler
      knows how to calculcate cpu_context.prio (very soon)
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NArnd Bergmann <arnd.bergmann@de.ibm.com>
      2eb1b120
    • C
      [POWERPC] spu sched: use DECLARE_BITMAP · 72cb3608
      Christoph Hellwig 提交于
      use DECLARE_BITMAP in the spu scheduler instead of reimplementing it.
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NArnd Bergmann <arnd.bergmann@de.ibm.com>
      72cb3608