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
f7079628
Commit
f7079628
authored
Apr 17, 2003
by
Alan Cox
Committed by
Linus Torvalds
Apr 17, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] small ipmi updates
parent
e9bc58c4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
8 deletions
+18
-8
drivers/char/ipmi/ipmi_devintf.c
drivers/char/ipmi/ipmi_devintf.c
+2
-2
drivers/char/ipmi/ipmi_kcs_intf.c
drivers/char/ipmi/ipmi_kcs_intf.c
+12
-0
drivers/char/ipmi/ipmi_msghandler.c
drivers/char/ipmi/ipmi_msghandler.c
+1
-3
drivers/char/ipmi/ipmi_watchdog.c
drivers/char/ipmi/ipmi_watchdog.c
+3
-3
No files found.
drivers/char/ipmi/ipmi_devintf.c
View file @
f7079628
...
...
@@ -81,10 +81,10 @@ static unsigned int ipmi_poll(struct file *file, poll_table *wait)
unsigned
int
mask
=
0
;
unsigned
long
flags
;
spin_lock_irqsave
(
&
priv
->
recv_msg_lock
,
flags
);
poll_wait
(
file
,
&
priv
->
wait
,
wait
);
spin_lock_irqsave
(
&
priv
->
recv_msg_lock
,
flags
);
if
(
!
list_empty
(
&
(
priv
->
recv_msgs
)))
mask
|=
(
POLLIN
|
POLLRDNORM
);
...
...
drivers/char/ipmi/ipmi_kcs_intf.c
View file @
f7079628
...
...
@@ -629,6 +629,18 @@ static void request_events(void *send_info)
atomic_set
(
&
kcs_info
->
req_events
,
1
);
}
static
int
new_user
(
void
*
send_info
)
{
if
(
!
try_module_get
(
THIS_MODULE
))
return
-
EBUSY
;
return
0
;
}
static
void
user_left
(
void
*
send_info
)
{
module_put
(
THIS_MODULE
);
}
static
int
initialized
=
0
;
/* Must be called with interrupts off and with the kcs_lock held. */
...
...
drivers/char/ipmi/ipmi_msghandler.c
View file @
f7079628
...
...
@@ -345,7 +345,7 @@ static int intf_next_seq(ipmi_smi_t intf,
unsigned
int
i
;
for
(
i
=
intf
->
curr_seq
;
i
!=
(
intf
->
curr_seq
-
1
)
;
(
i
+
1
)
%
IPMI_IPMB_NUM_SEQ
!=
intf
->
curr_seq
;
i
=
(
i
+
1
)
%
IPMI_IPMB_NUM_SEQ
)
{
if
(
!
intf
->
seq_table
[
i
].
inuse
)
...
...
@@ -907,8 +907,6 @@ static inline int i_ipmi_request(ipmi_user_t user,
probably, so abort. */
spin_unlock_irqrestore
(
&
(
intf
->
seq_lock
),
flags
);
ipmi_free_recv_msg
(
recv_msg
);
ipmi_free_smi_msg
(
smi_msg
);
goto
out_err
;
}
...
...
drivers/char/ipmi/ipmi_watchdog.c
View file @
f7079628
...
...
@@ -751,7 +751,7 @@ static void ipmi_register_watchdog(int ipmi_intf)
{
int
rv
=
-
EBUSY
;
down_
read
(
&
register_sem
);
down_
write
(
&
register_sem
);
if
(
watchdog_user
)
goto
out
;
...
...
@@ -917,7 +917,7 @@ static int __init ipmi_wdog_init(void)
}
else
if
(
strcmp
(
preaction
,
"pre_int"
)
==
0
)
{
preaction_val
=
WDOG_PRETIMEOUT_MSG_INT
;
}
else
{
action_val
=
WDOG_PRETIMEOUT_NONE
;
pre
action_val
=
WDOG_PRETIMEOUT_NONE
;
printk
(
"ipmi_watchdog: Unknown preaction '%s', defaulting to"
" none
\n
"
,
preaction
);
}
...
...
@@ -929,7 +929,7 @@ static int __init ipmi_wdog_init(void)
}
else
if
(
strcmp
(
preop
,
"preop_give_data"
)
==
0
)
{
preop_val
=
WDOG_PREOP_GIVE_DATA
;
}
else
{
action
_val
=
WDOG_PREOP_NONE
;
preop
_val
=
WDOG_PREOP_NONE
;
printk
(
"ipmi_watchdog: Unknown preop '%s', defaulting to"
" none
\n
"
,
preop
);
}
...
...
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