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
nexedi
linux
Commits
d24385ea
Commit
d24385ea
authored
Feb 27, 2003
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://linux-dj.bkbits.net/watchdog
into home.transmeta.com:/home/torvalds/v2.5/linux
parents
8d01a347
0bdb4fe0
Changes
13
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
40 additions
and
49 deletions
+40
-49
drivers/char/watchdog/acquirewdt.c
drivers/char/watchdog/acquirewdt.c
+0
-2
drivers/char/watchdog/amd7xx_tco.c
drivers/char/watchdog/amd7xx_tco.c
+0
-4
drivers/char/watchdog/ib700wdt.c
drivers/char/watchdog/ib700wdt.c
+36
-16
drivers/char/watchdog/indydog.c
drivers/char/watchdog/indydog.c
+0
-3
drivers/char/watchdog/machzwd.c
drivers/char/watchdog/machzwd.c
+0
-3
drivers/char/watchdog/mixcomwd.c
drivers/char/watchdog/mixcomwd.c
+1
-3
drivers/char/watchdog/pcwd.c
drivers/char/watchdog/pcwd.c
+1
-1
drivers/char/watchdog/sbc60xxwdt.c
drivers/char/watchdog/sbc60xxwdt.c
+1
-3
drivers/char/watchdog/sc520_wdt.c
drivers/char/watchdog/sc520_wdt.c
+0
-2
drivers/char/watchdog/shwdt.c
drivers/char/watchdog/shwdt.c
+0
-4
drivers/char/watchdog/softdog.c
drivers/char/watchdog/softdog.c
+1
-3
drivers/char/watchdog/wdt977.c
drivers/char/watchdog/wdt977.c
+0
-2
drivers/char/watchdog/wdt_pci.c
drivers/char/watchdog/wdt_pci.c
+0
-3
No files found.
drivers/char/watchdog/acquirewdt.c
View file @
d24385ea
...
...
@@ -141,8 +141,6 @@ static int acq_open(struct inode *inode, struct file *file)
spin_unlock
(
&
acq_lock
);
return
-
EBUSY
;
}
if
(
nowayout
)
MOD_INC_USE_COUNT
;
/* Activate */
acq_is_open
=
1
;
...
...
drivers/char/watchdog/amd7xx_tco.c
View file @
d24385ea
...
...
@@ -143,10 +143,6 @@ static int amdtco_fop_open(struct inode *inode, struct file *file)
if
(
down_trylock
(
&
open_sem
))
return
-
EBUSY
;
#ifdef CONFIG_WATCHDOG_NOWAYOUT
MOD_INC_USE_COUNT
;
#endif
if
(
timeout
>
MAX_TIMEOUT
)
timeout
=
MAX_TIMEOUT
;
...
...
drivers/char/watchdog/ib700wdt.c
View file @
d24385ea
...
...
@@ -50,6 +50,8 @@ static int ibwdt_is_open;
static
spinlock_t
ibwdt_lock
;
static
int
expect_close
=
0
;
#define PFX "ib700wdt: "
/*
*
* Watchdog Timer Configuration
...
...
@@ -226,8 +228,6 @@ ibwdt_open(struct inode *inode, struct file *file)
spin_unlock
(
&
ibwdt_lock
);
return
-
EBUSY
;
}
if
(
nowayout
)
MOD_INC_USE_COUNT
;
/* Activate */
ibwdt_is_open
=
1
;
...
...
@@ -247,7 +247,7 @@ ibwdt_close(struct inode *inode, struct file *file)
if
(
expect_close
)
outb_p
(
wd_times
[
wd_margin
],
WDT_STOP
);
else
printk
(
KERN_CRIT
"WDT device closed unexpectedly. WDT will not stop!
\n
"
);
printk
(
KERN_CRIT
PFX
"WDT device closed unexpectedly. WDT will not stop!
\n
"
);
ibwdt_is_open
=
0
;
spin_unlock
(
&
ibwdt_lock
);
...
...
@@ -300,29 +300,49 @@ static struct notifier_block ibwdt_notifier = {
.
priority
=
0
};
static
int
__init
ibwdt_init
(
void
)
static
int
__init
ibwdt_init
(
void
)
{
printk
(
"WDT driver for IB700 single board computer initialising.
\n
"
);
int
res
;
printk
(
KERN_INFO
PFX
"WDT driver for IB700 single board computer initialising.
\n
"
);
spin_lock_init
(
&
ibwdt_lock
);
if
(
misc_register
(
&
ibwdt_miscdev
))
return
-
ENODEV
;
res
=
misc_register
(
&
ibwdt_miscdev
);
if
(
res
)
{
printk
(
KERN_ERR
PFX
"failed to register misc device
\n
"
);
goto
out_nomisc
;
}
#if WDT_START != WDT_STOP
if
(
!
request_region
(
WDT_STOP
,
1
,
"IB700 WDT"
))
{
misc_deregister
(
&
ibwdt_miscdev
);
return
-
EIO
;
printk
(
KERN_ERR
PFX
"STOP method I/O %X is not available.
\n
"
,
WDT_STOP
);
res
=
-
EIO
;
goto
out_nostopreg
;
}
#endif
if
(
!
request_region
(
WDT_START
,
1
,
"IB700 WDT"
))
{
printk
(
KERN_ERR
PFX
"START method I/O %X is not available.
\n
"
,
WDT_START
);
res
=
-
EIO
;
goto
out_nostartreg
;
}
res
=
register_reboot_notifier
(
&
ibwdt_notifier
);
if
(
res
)
{
printk
(
KERN_ERR
PFX
"Failed to register reboot notifier.
\n
"
);
goto
out_noreboot
;
}
return
0
;
out_noreboot:
release_region
(
WDT_START
,
1
);
out_nostartreg:
#if WDT_START != WDT_STOP
release_region
(
WDT_STOP
,
1
);
#endif
out_nostopreg:
misc_deregister
(
&
ibwdt_miscdev
);
return
-
EIO
;
}
register_reboot_notifier
(
&
ibwdt_notifier
);
return
0
;
out_nomisc:
return
res
;
}
static
void
__exit
...
...
drivers/char/watchdog/indydog.c
View file @
d24385ea
...
...
@@ -53,9 +53,6 @@ static int indydog_open(struct inode *inode, struct file *file)
if
(
test_and_set_bit
(
0
,
&
indydog_alive
)
)
return
-
EBUSY
;
if
(
nowayout
)
MOD_INC_USE_COUNT
;
/*
* Activate timer
*/
...
...
drivers/char/watchdog/machzwd.c
View file @
d24385ea
...
...
@@ -390,9 +390,6 @@ static int zf_open(struct inode *inode, struct file *file)
return
-
EBUSY
;
}
if
(
nowayout
)
MOD_INC_USE_COUNT
;
zf_is_open
=
1
;
spin_unlock
(
&
zf_lock
);
...
...
drivers/char/watchdog/mixcomwd.c
View file @
d24385ea
...
...
@@ -93,9 +93,7 @@ static int mixcomwd_open(struct inode *inode, struct file *file)
}
mixcomwd_ping
();
if
(
nowayout
)
{
MOD_INC_USE_COUNT
;
}
else
{
if
(
!
nowayout
)
{
if
(
mixcomwd_timer_alive
)
{
del_timer
(
&
mixcomwd_timer
);
mixcomwd_timer_alive
=
0
;
...
...
drivers/char/watchdog/pcwd.c
View file @
d24385ea
...
...
@@ -430,7 +430,7 @@ static int pcwd_open(struct inode *ino, struct file *filep)
atomic_inc
(
&
open_allowed
);
return
-
EBUSY
;
}
MOD_INC_USE_COUNT
;
/* Enable the port */
if
(
revision
==
PCWD_REVISION_C
)
{
spin_lock
(
&
io_lock
);
...
...
drivers/char/watchdog/sbc60xxwdt.c
View file @
d24385ea
...
...
@@ -206,9 +206,7 @@ static int fop_open(struct inode * inode, struct file * file)
/* Just in case we're already talking to someone... */
if
(
wdt_is_open
)
return
-
EBUSY
;
if
(
nowayout
)
{
MOD_INC_USE_COUNT
;
}
/* Good, fire up the show */
wdt_is_open
=
1
;
wdt_startup
();
...
...
drivers/char/watchdog/sc520_wdt.c
View file @
d24385ea
...
...
@@ -229,8 +229,6 @@ static int fop_open(struct inode * inode, struct file * file)
return
-
EBUSY
;
/* Good, fire up the show */
wdt_startup
();
if
(
nowayout
)
MOD_INC_USE_COUNT
;
return
0
;
default:
...
...
drivers/char/watchdog/shwdt.c
View file @
d24385ea
...
...
@@ -189,10 +189,6 @@ static int sh_wdt_open(struct inode *inode, struct file *file)
if
(
test_and_set_bit
(
0
,
&
sh_is_open
))
return
-
EBUSY
;
if
(
nowayout
)
{
MOD_INC_USE_COUNT
;
}
sh_wdt_start
();
break
;
...
...
drivers/char/watchdog/softdog.c
View file @
d24385ea
...
...
@@ -103,9 +103,7 @@ static int softdog_open(struct inode *inode, struct file *file)
{
if
(
test_and_set_bit
(
0
,
&
timer_alive
))
return
-
EBUSY
;
if
(
nowayout
)
{
MOD_INC_USE_COUNT
;
}
/*
* Activate timer
*/
...
...
drivers/char/watchdog/wdt977.c
View file @
d24385ea
...
...
@@ -99,8 +99,6 @@ static int wdt977_open(struct inode *inode, struct file *file)
if
(
nowayout
)
{
MOD_INC_USE_COUNT
;
/* do not permit disabling the watchdog by writing 0 to reg. 0xF2 */
if
(
!
timeoutM
)
timeoutM
=
DEFAULT_TIMEOUT
;
}
...
...
drivers/char/watchdog/wdt_pci.c
View file @
d24385ea
...
...
@@ -365,9 +365,6 @@ static int wdtpci_open(struct inode *inode, struct file *file)
if
(
down_trylock
(
&
open_sem
))
return
-
EBUSY
;
if
(
nowayout
)
{
MOD_INC_USE_COUNT
;
}
/*
* Activate
*/
...
...
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