1. 15 5月, 2006 1 次提交
    • D
      [JFFS2] Don't pack on-medium structures, because GCC emits crappy code · 3e68fbb5
      David Woodhouse 提交于
      If we use __attribute__((packed)), GCC will _also_ assume that the
      structures aren't sensibly aligned, and it'll emit code to cope with
      that instead of straight word load/save. This can be _very_ suboptimal
      on architectures like ARM.
      
      Ideally, we want an attribute which just tells GCC not to do any
      padding, without the alignment side-effects. In the absense of that,
      we'll just drop the 'packed' attribute and hope that everything stays as
      it was (which to be fair is fairly much what we expect). And add some
      paranoia checks in the initialisation code, which should be optimised
      away completely in the normal case.
      Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
      3e68fbb5
  2. 14 5月, 2006 10 次提交
  3. 13 5月, 2006 4 次提交
  4. 12 5月, 2006 13 次提交
  5. 10 5月, 2006 1 次提交
  6. 09 5月, 2006 4 次提交
  7. 08 5月, 2006 2 次提交
    • D
      Remove inter_module_xxx() from DiskOnChip drivers. · 5e535429
      David Woodhouse 提交于
      Finally putting it back how it was before Keith got at it -- yay :)
      Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
      5e535429
    • L
      [MTD] Convert physmap to platform driver · 73566edf
      Lennert Buytenhek 提交于
      After dwmw2 let me know it ought to be done, I rewrote the physmap map
      driver to be a platform driver.  I know zilch about the driver model,
      so I probably botched it in some way, but I've done some tests on an
      ixp23xx board which uses physmap, and it all seems to work.
      
      In order to not break existing physmap users, I've added some compat
      code that will instantiate a platform device iff CONFIG_MTD_PHYSMAP_LEN
      is defined and != 0.  Also, I've changed the default value for
      CONFIG_MTD_PHYSMAP_LEN to zero, so that people who inadvertently
      compile in physmap (or new, platform-style, users of physmap) don't get
      burned.
      
      This works pretty well -- the new physmap driver is a drop-in replacement
      for the old one, and works on said ixp23xx board without any code changes
      needed.  (This should hold as long as users don't touch 'physmap_map'
      directly.)
      
      Once all physmap users have been converted to instantiate their own
      platform devices, the compat code can go.  (Or we decide that we can
      change all the in-tree users at the same time, and never merge the
      compat code.)
      Signed-off-by: NLennert Buytenhek <buytenh@wantstofly.org>
      Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
      73566edf
  8. 06 5月, 2006 1 次提交
  9. 03 5月, 2006 4 次提交