1. 18 7月, 2016 7 次提交
  2. 28 12月, 2015 1 次提交
    • L
      watchdog: refuse to unload softdog module when its timer is running · 5889f06b
      Li RongQing 提交于
      the softdog has static variables which are accessed if its timer is
      still running after the driver is unloaded. and lead to crash:
      
         $modprobe softdog
         $echo 1 >/dev/watchdog
         $modprobe -r softdog
      
         CPU 20 Unable to handle kernel paging request at virtual address
         Oops[#1]:
         CPU: 20 PID: 0 Comm: swapper/20 Not tainted 4.1.13-WR8.0.0.0_standard
         ...
         Modules linked in: [last unloaded: softdog]
          ....
         Call Trace:
         [<ffffffff801e142c>] cascade+0x34/0xb0
         [<ffffffff801e1964>] run_timer_softirq+0x30c/0x368
         [<ffffffff80181044>] __do_softirq+0x1ec/0x418
         [<ffffffff801815d0>] irq_exit+0x90/0x98
         [<ffffffff8010749c>] plat_irq_dispatch+0xa4/0x140
         [<ffffffff80152740>] ret_from_irq+0x0/0x4
         [<ffffffff801529e0>] __r4k_wait+0x20/0x40
         [<ffffffff801c2278>] cpu_startup_entry+0x2a0/0x368
         [<ffffffff8015fa64>] start_secondary+0x444/0x4d8
      
      add the module ref when timer is running to avoid to unload the softdog
      module
      Signed-off-by: NLi RongQing <roy.qing.li@gmail.com>
      Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
      Signed-off-by: NWim Van Sebroeck <wim@iguana.be>
      5889f06b
  3. 13 12月, 2015 1 次提交
  4. 31 3月, 2014 1 次提交
  5. 10 12月, 2013 1 次提交
  6. 18 11月, 2013 1 次提交
    • J
      watchdog: Get rid of MODULE_ALIAS_MISCDEV statements · 487722cf
      Jean Delvare 提交于
      I just can't find any value in MODULE_ALIAS_MISCDEV(WATCHDOG_MINOR)
      and MODULE_ALIAS_MISCDEV(TEMP_MINOR) statements.
      
      Either the device is enumerated and the driver already has a module
      alias (e.g. PCI, USB etc.) that will get the right driver loaded
      automatically.
      
      Or the device is not enumerated and loading its driver will lead to
      more or less intrusive hardware poking. Such hardware poking should be
      limited to a bare minimum, so the user should really decide which
      drivers should be tried and in what order. Trying them all in
      arbitrary order can't do any good.
      
      On top of that, loading that many drivers at once bloats the kernel
      log. Also many drivers will stay loaded afterward, bloating the output
      of "lsmod" and wasting memory. Some modules (cs5535_mfgpt which gets
      loaded as a dependency) can't even be unloaded!
      
      If defining char-major-10-130 is needed then it should happen in
      user-space.
      Signed-off-by: NJean Delvare <jdelvare@suse.de>
      Acked-by: NGuenter Roeck <linux@roeck-us.net>
      Signed-off-by: NWim Van Sebroeck <wim@iguana.be>
      Cc: Stephen Warren <swarren@wwwdotorg.org>
      Cc: Mike Frysinger <vapier.adi@gmail.com>
      Cc: Wan ZongShun <mcuos.com@gmail.com>
      Cc: Ben Dooks <ben-linux@fluff.org>
      Cc: Kukjin Kim <kgene.kim@samsung.com>
      Cc: Zwane Mwaikambo <zwane@arm.linux.org.uk>
      Cc: Jim Cromie <jim.cromie@gmail.com>
      487722cf
  7. 12 7月, 2013 1 次提交
  8. 28 3月, 2012 3 次提交
  9. 29 3月, 2011 1 次提交
  10. 16 3月, 2011 1 次提交
  11. 18 6月, 2009 1 次提交
  12. 25 3月, 2009 1 次提交
  13. 29 10月, 2008 1 次提交
  14. 06 8月, 2008 1 次提交
    • W
      [WATCHDOG] Coding style - Indentation - part 2 · 0c06090c
      Wim Van Sebroeck 提交于
      This brings the watchdog drivers into line with coding style.
      This patch takes cares of the indentation as described in chapter 1.
      Main changes:
      * Re-structure the ioctl switch call for all drivers as follows:
      	switch (cmd) {
      	case WDIOC_GETSUPPORT:
      	case WDIOC_GETSTATUS:
      	case WDIOC_GETBOOTSTATUS:
      	case WDIOC_GETTEMP:
      	case WDIOC_SETOPTIONS:
      	case WDIOC_KEEPALIVE:
      	case WDIOC_SETTIMEOUT:
      	case WDIOC_GETTIMEOUT:
      	case WDIOC_GETTIMELEFT:
      	default:
      	}
      
      This to make the migration from the drivers to the uniform watchdog
      device driver easier in the future.
      Signed-off-by: NWim Van Sebroeck <wim@iguana.be>
      0c06090c
  15. 21 6月, 2008 1 次提交
  16. 18 10月, 2007 1 次提交
  17. 28 1月, 2007 1 次提交
  18. 03 10月, 2006 1 次提交
  19. 04 7月, 2006 1 次提交
  20. 01 7月, 2006 1 次提交
  21. 31 10月, 2005 1 次提交
    • T
      [PATCH] fix missing includes · 4e57b681
      Tim Schmielau 提交于
      I recently picked up my older work to remove unnecessary #includes of
      sched.h, starting from a patch by Dave Jones to not include sched.h
      from module.h. This reduces the number of indirect includes of sched.h
      by ~300. Another ~400 pointless direct includes can be removed after
      this disentangling (patch to follow later).
      However, quite a few indirect includes need to be fixed up for this.
      
      In order to feed the patches through -mm with as little disturbance as
      possible, I've split out the fixes I accumulated up to now (complete for
      i386 and x86_64, more archs to follow later) and post them before the real
      patch.  This way this large part of the patch is kept simple with only
      adding #includes, and all hunks are independent of each other.  So if any
      hunk rejects or gets in the way of other patches, just drop it.  My scripts
      will pick it up again in the next round.
      Signed-off-by: NTim Schmielau <tim@physik3.uni-rostock.de>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      4e57b681
  22. 03 9月, 2005 1 次提交
    • C
      [WATCHDOG] softdog-timer-running-oops.patch · 1cc77248
      Chuck Ebbert 提交于
      The softdog watchdog timer has a bug that can create an oops:
      
      1.  Load the module without the nowayout option.
      2.  Open the driver and close it without writing 'V' before close.
      3.  Unload the module.  The timer will continue to run...
      4.  Oops happens when timer fires.
      
      Reported Sun, 10 Oct 2004, by Michael Schierl <schierlm@gmx.de>
      
      Fix is easy: always take a reference on the module on open.
      Release it only when the device is closed and no timer is running.
      Tested on 2.6.13-rc6 using the soft_noboot option.  While the
      timer is running and the device is closed, the module use count
      stays at 1.  After the timer fires, it drops to 0.  Repeatedly
      opening and closing the driver caused no problems.  Please apply.
      Signed-off-by: NChuck Ebbert <76306.1226@compuserve.com>
      Signed-off-by: NWim Van Sebroeck <wim@iguana.be>
      1cc77248
  23. 28 7月, 2005 1 次提交
  24. 27 7月, 2005 2 次提交
  25. 17 4月, 2005 1 次提交
    • L
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds 提交于
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
      1da177e4