lguest: Sanitize the lguest clock.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 11 Mar 2008 14:35:56 +0000 (09:35 -0500)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 10 Mar 2008 22:35:57 +0000 (09:35 +1100)
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: Rusty Russell <rusty@rustcorp.com.au>

No differences found