Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
xenomai
ipipe
Commits
c297840f
Commit
c297840f
authored
Mar 22, 2016
by
Philippe Gerum
Browse files
arm/ipipe: ceil TSC update period conservatively
Make sure we won't go backward in time when reprogramming the update timer.
parent
3e10a990
Changes
1
Hide whitespace changes
Inline
Side-by-side
arch/arm/kernel/ipipe_tsc.c
View file @
c297840f
...
...
@@ -126,7 +126,7 @@ void __init __ipipe_tsc_register(struct __ipipe_tscinfo *info)
default:
unimplemented:
printk
(
"I-pipe
l
: Unimplemented tsc configuration, "
printk
(
"I-pipe: Unimplemented tsc configuration, "
"type: %d, mask: 0x%08Lx
\n
"
,
info
->
type
,
info
->
u
.
mask
);
BUG
();
}
...
...
@@ -163,8 +163,8 @@ void __init __ipipe_tsc_register(struct __ipipe_tscinfo *info)
wrap_ms
*=
HZ
/
2
;
do_div
(
wrap_ms
,
1000
);
if
(
wrap_ms
>
0x
f
fffffff
)
wrap_ms
=
0x
f
fffffff
;
if
(
wrap_ms
>
0x
7
fffffff
)
wrap_ms
=
0x
7
fffffff
;
ipipe_tsc_update_timer
.
data
=
wrap_ms
;
ipipe_tsc_update_timer
.
function
=
__ipipe_tsc_update_fn
;
mod_timer
(
&
ipipe_tsc_update_timer
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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