1. 28 7月, 2008 4 次提交
    • B
      i2c: S3C2410: Pass the I2C bus number via drivers platform data · 399dee23
      Ben Dooks 提交于
      Allow the platform data to specify the bus bumber that the
      new I2C bus will be given. This is to allow the use of the
      board registration mechanism to specify the new style of
      I2C device registration which allows boards to provide a
      list of attached devices.
      
      Note, as discussed on the mailing list, we have dropped
      backwards compatibility of adding an dynamic bus number
      as it should not affect most boards to have the bus pinned
      to 0 if they have either not specified platform data for
      driver. Any board supplying platform data will automatically
      have the bus_num field set to 0, and anyone who needs the
      driver on a different bus number can supply platform data
      to set bus_num.
      Signed-off-by: NBen Dooks <ben-linux@fluff.org>
      399dee23
    • A
      task IO accounting: move all IO statistics in struct task_io_accounting · 940389b8
      Andrea Righi 提交于
      Simplify the code of include/linux/task_io_accounting.h.
      
      It is also more reasonable to have all the task i/o-related statistics in a
      single struct (task_io_accounting).
      Signed-off-by: NAndrea Righi <righi.andrea@gmail.com>
      Signed-off-by: NOleg Nesterov <oleg@tv-sign.ru>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      940389b8
    • A
      task IO accounting: improve code readability · 5995477a
      Andrea Righi 提交于
      Put all i/o statistics in struct proc_io_accounting and use inline functions to
      initialize and increment statistics, removing a lot of single variable
      assignments.
      
      This also reduces the kernel size as following (with CONFIG_TASK_XACCT=y and
      CONFIG_TASK_IO_ACCOUNTING=y).
      
          text    data     bss     dec     hex filename
         11651       0       0   11651    2d83 kernel/exit.o.before
         11619       0       0   11619    2d63 kernel/exit.o.after
         10886     132     136   11154    2b92 kernel/fork.o.before
         10758     132     136   11026    2b12 kernel/fork.o.after
      
       3082029  807968 4818600 8708597  84e1f5 vmlinux.o.before
       3081869  807968 4818600 8708437  84e155 vmlinux.o.after
      Signed-off-by: NAndrea Righi <righi.andrea@gmail.com>
      Acked-by: NOleg Nesterov <oleg@tv-sign.ru>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      5995477a
    • A
      missing bits of net-namespace / sysctl · eeb61f71
      Al Viro 提交于
      Piss-poor sysctl registration API strikes again, film at 11...
      
      What we really need is _pathname_ required to be present in already
      registered table, so that kernel could warn about bad order.  That's the
      next target for sysctl stuff (and generally saner and more explicit
      order of initialization of ipv[46] internals wouldn't hurt either).
      
      For the time being, here are full fixups required by ..._rotable()
      stuff; we make per-net sysctl sets descendents of "ro" one and make sure
      that sufficient skeleton is there before we start registering per-net
      sysctls.
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      eeb61f71
  2. 27 7月, 2008 36 次提交