Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci-2.6.23
Commits
b63d4fe9
Commit
b63d4fe9
authored
Oct 08, 2006
by
Stefan Richter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ieee1394: usecs_to_jiffies takes unsigned int argument
Signed-off-by:
Stefan Richter
<
stefanr@s5r6.in-berlin.de
>
parent
da256c55
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
drivers/ieee1394/csr.c
drivers/ieee1394/csr.c
+3
-5
No files found.
drivers/ieee1394/csr.c
View file @
b63d4fe9
...
...
@@ -158,12 +158,10 @@ static void host_reset(struct hpsb_host *host)
*/
static
inline
void
calculate_expire
(
struct
csr_control
*
csr
)
{
unsigned
long
usecs
=
(
csr
->
split_timeout_hi
&
0x07
)
*
USEC_PER_SEC
+
(
csr
->
split_timeout_lo
>>
19
)
*
125L
;
csr
->
expire
=
usecs_to_jiffies
(
usecs
>
100000L
?
usecs
:
100000L
);
unsigned
int
usecs
=
(
csr
->
split_timeout_hi
&
7
)
*
1000000
+
(
csr
->
split_timeout_lo
>>
19
)
*
125
;
csr
->
expire
=
usecs_to_jiffies
(
usecs
>
100000
?
usecs
:
100000
);
HPSB_VERBOSE
(
"CSR: setting expire to %lu, HZ=%u"
,
csr
->
expire
,
HZ
);
}
...
...
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