1. 09 10月, 2009 2 次提交
    • M
      sh: Don't allocate smaller sized mappings on every iteration · a2767cfb
      Matt Fleming 提交于
      Currently, we've got the less than ideal situation where if we need to
      allocate a 256MB mapping we'll allocate four entries like so,
      
      	 entry 1: 128MB
      	 entry 2:  64MB
      	 entry 3:  16MB
      	 entry 4:  16MB
      
      This is because as we execute the loop in pmb_remap() we will
      progressively try mapping the remaining address space with smaller and
      smaller sizes. This isn't good because the size we use on one iteration
      may be the perfect size to use on the next iteration, for instance when
      the initial size is divisible by one of the PMB mapping sizes.
      
      With this patch, we now only need two entries in the PMB to map 256MB of
      address space,
      
      	  entry 1: 128MB
      	  entry 2: 128MB
      Signed-off-by: NMatt Fleming <matt@console-pimps.org>
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      a2767cfb
    • M
      sh: Plug PMB alloc memory leak · fc2bdefd
      Matt Fleming 提交于
      If we fail to allocate a PMB entry in pmb_remap() we must remember to
      clear and free any PMB entries that we may have previously allocated,
      e.g. if we were allocating a multiple entry mapping.
      Signed-off-by: NMatt Fleming <matt@console-pimps.org>
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      fc2bdefd
  2. 16 3月, 2009 1 次提交
  3. 20 10月, 2008 1 次提交
  4. 28 7月, 2008 1 次提交
  5. 27 7月, 2008 1 次提交
  6. 19 4月, 2008 1 次提交
  7. 28 1月, 2008 3 次提交
  8. 17 10月, 2007 1 次提交
  9. 21 9月, 2007 1 次提交
  10. 20 7月, 2007 1 次提交
    • P
      mm: Remove slab destructors from kmem_cache_create(). · 20c2df83
      Paul Mundt 提交于
      Slab destructors were no longer supported after Christoph's
      c59def9f change. They've been
      BUGs for both slab and slub, and slob never supported them
      either.
      
      This rips out support for the dtor pointer from kmem_cache_create()
      completely and fixes up every single callsite in the kernel (there were
      about 224, not including the slab allocator definitions themselves,
      or the documentation references).
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      20c2df83
  11. 14 5月, 2007 1 次提交
    • P
      sh: Kill off pmb slab cache destructor. · 38c425f6
      Paul Mundt 提交于
      This is the last remaining slab destructor in the kernel, which
      we kill off and move the resultant list tracking logic up to
      the pmb_alloc()/pmb_free() paths.
      
      As Christoph Lameter pointed out, it's potentially unsafe to be
      taking the list lock in the destructor anyways, so this is also
      more fundamentally correct.
      
      With this in place, we're all set for killing off slab destructors
      from the kernel entirely.
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      38c425f6
  12. 09 5月, 2007 1 次提交
  13. 13 2月, 2007 1 次提交
  14. 08 12月, 2006 1 次提交
  15. 27 9月, 2006 3 次提交