1. 17 3月, 2016 3 次提交
  2. 01 3月, 2016 1 次提交
  3. 12 1月, 2016 3 次提交
  4. 30 12月, 2015 1 次提交
    • G
      watchdog: Separate and maintain variables based on variable lifetime · b4ffb190
      Guenter Roeck 提交于
      All variables required by the watchdog core to manage a watchdog are
      currently stored in struct watchdog_device. The lifetime of those
      variables is determined by the watchdog driver. However, the lifetime
      of variables used by the watchdog core differs from the lifetime of
      struct watchdog_device. To remedy this situation, watchdog drivers
      can implement ref and unref callbacks, to be used by the watchdog
      core to lock struct watchdog_device in memory.
      
      While this solves the immediate problem, it depends on watchdog drivers
      to actually implement the ref/unref callbacks. This is error prone,
      often not implemented in the first place, or not implemented correctly.
      
      To solve the problem without requiring driver support, split the variables
      in struct watchdog_device into two data structures - one for variables
      associated with the watchdog driver, one for variables associated with
      the watchdog core. With this approach, the watchdog core can keep track
      of its variable lifetime and no longer depends on ref/unref callbacks
      in the driver. As a side effect, some of the variables originally in
      struct watchdog_driver are now private to the watchdog core and no longer
      visible in watchdog drivers.
      
      As a side effect of the changes made, an ioctl will now always fail
      with -ENODEV after a watchdog device was unregistered with the character
      device still open. Previously, it would only fail with -ENODEV in some
      situations. Also, ioctl operations are now atomic from driver perspective.
      With this change, it is now guaranteed that the driver will not unregister
      a watchdog between a timeout change and the subsequent ping.
      
      The 'ref' and 'unref' callbacks in struct watchdog_driver are no longer
      used and marked as deprecated.
      Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
      Signed-off-by: NWim Van Sebroeck <wim@iguana.be>
      b4ffb190
  5. 13 12月, 2015 2 次提交
  6. 04 11月, 2015 2 次提交
  7. 03 11月, 2015 1 次提交
  8. 05 9月, 2015 1 次提交
  9. 29 6月, 2015 1 次提交
  10. 02 4月, 2015 1 次提交
  11. 21 10月, 2014 1 次提交
  12. 01 3月, 2013 1 次提交
  13. 20 12月, 2012 1 次提交
  14. 19 11月, 2012 1 次提交
  15. 13 10月, 2012 1 次提交
  16. 30 5月, 2012 6 次提交
  17. 28 3月, 2012 2 次提交
  18. 06 1月, 2012 1 次提交
  19. 28 7月, 2011 8 次提交
  20. 21 6月, 2006 2 次提交