Skip to content
Commit 3fabc55f authored by Rusty Russell's avatar Rusty Russell
Browse files

lguest: Sanitize the lguest clock.



Now the TSC code handles a zero return from calculate_cpu_khz(),
lguest can simply pass through the value it gets from the Host: if
non-zero, all the normal TSC code applies.

Otherwise (or if the Host really doesn't support TSC), the clocksource
code will fall back to the slower but reasonable lguest clock.

Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent f14ae652
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment