Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
94dad77b
Commit
94dad77b
authored
Mar 16, 2005
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
http://linux-watchdog.bkbits.net/linux-2.6-watchdog
into ppc970.osdl.org:/home/torvalds/v2.6/linux
parents
4d1de97b
90127915
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
17 deletions
+16
-17
drivers/char/watchdog/Makefile
drivers/char/watchdog/Makefile
+7
-6
drivers/char/watchdog/pcwd_pci.c
drivers/char/watchdog/pcwd_pci.c
+3
-3
drivers/char/watchdog/pcwd_usb.c
drivers/char/watchdog/pcwd_usb.c
+3
-3
drivers/char/watchdog/s3c2410_wdt.c
drivers/char/watchdog/s3c2410_wdt.c
+3
-5
No files found.
drivers/char/watchdog/Makefile
View file @
94dad77b
...
@@ -2,11 +2,6 @@
...
@@ -2,11 +2,6 @@
# Makefile for the WatchDog device drivers.
# Makefile for the WatchDog device drivers.
#
#
# Only one watchdog can succeed. We probe the hardware watchdog
# drivers first, then the softdog driver. This means if your hardware
# watchdog dies or is 'borrowed' for some reason the software watchdog
# still gives you some cover.
obj-$(CONFIG_PCWATCHDOG)
+=
pcwd.o
obj-$(CONFIG_PCWATCHDOG)
+=
pcwd.o
obj-$(CONFIG_ACQUIRE_WDT)
+=
acquirewdt.o
obj-$(CONFIG_ACQUIRE_WDT)
+=
acquirewdt.o
obj-$(CONFIG_ADVANTECH_WDT)
+=
advantechwdt.o
obj-$(CONFIG_ADVANTECH_WDT)
+=
advantechwdt.o
...
@@ -24,7 +19,6 @@ obj-$(CONFIG_SH_WDT) += shwdt.o
...
@@ -24,7 +19,6 @@ obj-$(CONFIG_SH_WDT) += shwdt.o
obj-$(CONFIG_S3C2410_WATCHDOG)
+=
s3c2410_wdt.o
obj-$(CONFIG_S3C2410_WATCHDOG)
+=
s3c2410_wdt.o
obj-$(CONFIG_SA1100_WATCHDOG)
+=
sa1100_wdt.o
obj-$(CONFIG_SA1100_WATCHDOG)
+=
sa1100_wdt.o
obj-$(CONFIG_EUROTECH_WDT)
+=
eurotechwdt.o
obj-$(CONFIG_EUROTECH_WDT)
+=
eurotechwdt.o
obj-$(CONFIG_SOFT_WATCHDOG)
+=
softdog.o
obj-$(CONFIG_W83877F_WDT)
+=
w83877f_wdt.o
obj-$(CONFIG_W83877F_WDT)
+=
w83877f_wdt.o
obj-$(CONFIG_W83627HF_WDT)
+=
w83627hf_wdt.o
obj-$(CONFIG_W83627HF_WDT)
+=
w83627hf_wdt.o
obj-$(CONFIG_SC520_WDT)
+=
sc520_wdt.o
obj-$(CONFIG_SC520_WDT)
+=
sc520_wdt.o
...
@@ -39,3 +33,10 @@ obj-$(CONFIG_USBPCWATCHDOG) += pcwd_usb.o
...
@@ -39,3 +33,10 @@ obj-$(CONFIG_USBPCWATCHDOG) += pcwd_usb.o
obj-$(CONFIG_IXP4XX_WATCHDOG)
+=
ixp4xx_wdt.o
obj-$(CONFIG_IXP4XX_WATCHDOG)
+=
ixp4xx_wdt.o
obj-$(CONFIG_IXP2000_WATCHDOG)
+=
ixp2000_wdt.o
obj-$(CONFIG_IXP2000_WATCHDOG)
+=
ixp2000_wdt.o
obj-$(CONFIG_8xx_WDT)
+=
mpc8xx_wdt.o
obj-$(CONFIG_8xx_WDT)
+=
mpc8xx_wdt.o
# Only one watchdog can succeed. We probe the hardware watchdog
# drivers first, then the softdog driver. This means if your hardware
# watchdog dies or is 'borrowed' for some reason the software watchdog
# still gives you some cover.
obj-$(CONFIG_SOFT_WATCHDOG)
+=
softdog.o
drivers/char/watchdog/pcwd_pci.c
View file @
94dad77b
...
@@ -48,8 +48,8 @@
...
@@ -48,8 +48,8 @@
#include <asm/io.h>
#include <asm/io.h>
/* Module and version information */
/* Module and version information */
#define WATCHDOG_VERSION "1.0
0
"
#define WATCHDOG_VERSION "1.0
1
"
#define WATCHDOG_DATE "1
2 Jun 2004
"
#define WATCHDOG_DATE "1
5 Mar 2005
"
#define WATCHDOG_DRIVER_NAME "PCI-PC Watchdog"
#define WATCHDOG_DRIVER_NAME "PCI-PC Watchdog"
#define WATCHDOG_NAME "pcwd_pci"
#define WATCHDOG_NAME "pcwd_pci"
#define PFX WATCHDOG_NAME ": "
#define PFX WATCHDOG_NAME ": "
...
@@ -659,7 +659,7 @@ static int __init pcipcwd_init_module(void)
...
@@ -659,7 +659,7 @@ static int __init pcipcwd_init_module(void)
{
{
spin_lock_init
(
&
pcipcwd_private
.
io_lock
);
spin_lock_init
(
&
pcipcwd_private
.
io_lock
);
return
pci_
module_init
(
&
pcipcwd_driver
);
return
pci_
register_driver
(
&
pcipcwd_driver
);
}
}
static
void
__exit
pcipcwd_cleanup_module
(
void
)
static
void
__exit
pcipcwd_cleanup_module
(
void
)
...
...
drivers/char/watchdog/pcwd_usb.c
View file @
94dad77b
...
@@ -56,8 +56,8 @@
...
@@ -56,8 +56,8 @@
/* Module and Version Information */
/* Module and Version Information */
#define DRIVER_VERSION "1.0
0
"
#define DRIVER_VERSION "1.0
1
"
#define DRIVER_DATE "1
2 Jun 2004
"
#define DRIVER_DATE "1
5 Mar 2005
"
#define DRIVER_AUTHOR "Wim Van Sebroeck <wim@iguana.be>"
#define DRIVER_AUTHOR "Wim Van Sebroeck <wim@iguana.be>"
#define DRIVER_DESC "Berkshire USB-PC Watchdog driver"
#define DRIVER_DESC "Berkshire USB-PC Watchdog driver"
#define DRIVER_LICENSE "GPL"
#define DRIVER_LICENSE "GPL"
...
@@ -227,7 +227,7 @@ static int usb_pcwd_send_command(struct usb_pcwd_private *usb_pcwd, unsigned cha
...
@@ -227,7 +227,7 @@ static int usb_pcwd_send_command(struct usb_pcwd_private *usb_pcwd, unsigned cha
if
(
usb_control_msg
(
usb_pcwd
->
udev
,
usb_sndctrlpipe
(
usb_pcwd
->
udev
,
0
),
if
(
usb_control_msg
(
usb_pcwd
->
udev
,
usb_sndctrlpipe
(
usb_pcwd
->
udev
,
0
),
HID_REQ_SET_REPORT
,
HID_DT_REPORT
,
HID_REQ_SET_REPORT
,
HID_DT_REPORT
,
0x0200
,
usb_pcwd
->
interface_number
,
buf
,
sizeof
(
buf
),
0x0200
,
usb_pcwd
->
interface_number
,
buf
,
sizeof
(
buf
),
1000
)
!=
sizeof
(
buf
))
{
USB_COMMAND_TIMEOUT
)
!=
sizeof
(
buf
))
{
dbg
(
"usb_pcwd_send_command: error in usb_control_msg for cmd 0x%x 0x%x 0x%x
\n
"
,
cmd
,
*
msb
,
*
lsb
);
dbg
(
"usb_pcwd_send_command: error in usb_control_msg for cmd 0x%x 0x%x 0x%x
\n
"
,
cmd
,
*
msb
,
*
lsb
);
}
}
/* wait till the usb card processed the command,
/* wait till the usb card processed the command,
...
...
drivers/char/watchdog/s3c2410_wdt.c
View file @
94dad77b
...
@@ -27,6 +27,8 @@
...
@@ -27,6 +27,8 @@
* Fixed tmr_count / wdt_count confusion
* Fixed tmr_count / wdt_count confusion
* Added configurable debug
* Added configurable debug
*
*
* 11-Jan-2004 BJD Fixed divide-by-2 in timeout code
*
* 10-Mar-2005 LCVR Changed S3C2410_VA to S3C24XX_VA
* 10-Mar-2005 LCVR Changed S3C2410_VA to S3C24XX_VA
*/
*/
...
@@ -165,11 +167,7 @@ static int s3c2410wdt_set_heartbeat(int timeout)
...
@@ -165,11 +167,7 @@ static int s3c2410wdt_set_heartbeat(int timeout)
if
(
timeout
<
1
)
if
(
timeout
<
1
)
return
-
EINVAL
;
return
-
EINVAL
;
/* I think someone must have missed a divide-by-2 in the 2410,
freq
/=
128
;
* as a divisor of 128 gives half the calculated delay...
*/
freq
/=
128
/
2
;
count
=
timeout
*
freq
;
count
=
timeout
*
freq
;
DBG
(
"%s: count=%d, timeout=%d, freq=%d
\n
"
,
DBG
(
"%s: count=%d, timeout=%d, freq=%d
\n
"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment