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
b32f4cf0
Commit
b32f4cf0
authored
Feb 13, 2003
by
Dave Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[WATCHDOG] printk levels for alim7101_wdt.c
parent
0388da82
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
drivers/char/watchdog/alim7101_wdt.c
drivers/char/watchdog/alim7101_wdt.c
+5
-5
No files found.
drivers/char/watchdog/alim7101_wdt.c
View file @
b32f4cf0
...
@@ -100,7 +100,7 @@ static void wdt_timer_ping(unsigned long data)
...
@@ -100,7 +100,7 @@ static void wdt_timer_ping(unsigned long data)
pci_write_config_byte
(
alim7101_pmu
,
ALI_7101_WDT
,
(
tmp
&
~
ALI_WDT_ARM
));
pci_write_config_byte
(
alim7101_pmu
,
ALI_7101_WDT
,
(
tmp
&
~
ALI_WDT_ARM
));
pci_write_config_byte
(
alim7101_pmu
,
ALI_7101_WDT
,
(
tmp
|
ALI_WDT_ARM
));
pci_write_config_byte
(
alim7101_pmu
,
ALI_7101_WDT
,
(
tmp
|
ALI_WDT_ARM
));
}
else
{
}
else
{
printk
(
OUR_NAME
": Heartbeat lost! Will not ping the watchdog
\n
"
);
printk
(
KERN_INFO
OUR_NAME
": Heartbeat lost! Will not ping the watchdog
\n
"
);
}
}
/* Re-set the timer interval */
/* Re-set the timer interval */
timer
.
expires
=
jiffies
+
WDT_INTERVAL
;
timer
.
expires
=
jiffies
+
WDT_INTERVAL
;
...
@@ -136,7 +136,7 @@ static void wdt_startup(void)
...
@@ -136,7 +136,7 @@ static void wdt_startup(void)
add_timer
(
&
timer
);
add_timer
(
&
timer
);
printk
(
OUR_NAME
": Watchdog timer is now enabled.
\n
"
);
printk
(
KERN_INFO
OUR_NAME
": Watchdog timer is now enabled.
\n
"
);
}
}
static
void
wdt_turnoff
(
void
)
static
void
wdt_turnoff
(
void
)
...
@@ -144,7 +144,7 @@ static void wdt_turnoff(void)
...
@@ -144,7 +144,7 @@ static void wdt_turnoff(void)
/* Stop the timer */
/* Stop the timer */
del_timer_sync
(
&
timer
);
del_timer_sync
(
&
timer
);
wdt_change
(
WDT_DISABLE
);
wdt_change
(
WDT_DISABLE
);
printk
(
OUR_NAME
": Watchdog timer is now disabled...
\n
"
);
printk
(
KERN_INFO
OUR_NAME
": Watchdog timer is now disabled...
\n
"
);
}
}
/*
/*
...
@@ -203,7 +203,7 @@ static int fop_close(struct inode * inode, struct file * file)
...
@@ -203,7 +203,7 @@ static int fop_close(struct inode * inode, struct file * file)
if
(
wdt_expect_close
)
if
(
wdt_expect_close
)
wdt_turnoff
();
wdt_turnoff
();
else
else
printk
(
OUR_NAME
": device file closed unexpectedly. Will not stop the WDT!
\n
"
);
printk
(
KERN_INFO
OUR_NAME
": device file closed unexpectedly. Will not stop the WDT!
\n
"
);
clear_bit
(
0
,
&
wdt_is_open
);
clear_bit
(
0
,
&
wdt_is_open
);
return
0
;
return
0
;
...
@@ -262,7 +262,7 @@ static int wdt_notify_sys(struct notifier_block *this, unsigned long code, void
...
@@ -262,7 +262,7 @@ static int wdt_notify_sys(struct notifier_block *this, unsigned long code, void
* reboot with no heartbeat
* reboot with no heartbeat
*/
*/
wdt_change
(
WDT_ENABLE
);
wdt_change
(
WDT_ENABLE
);
printk
(
OUR_NAME
": Watchdog timer is now enabled with no heartbeat - should reboot in ~1 second.
\n
"
);
printk
(
KERN_INFO
OUR_NAME
": Watchdog timer is now enabled with no heartbeat - should reboot in ~1 second.
\n
"
);
}
}
return
NOTIFY_DONE
;
return
NOTIFY_DONE
;
}
}
...
...
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