aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/lguest/lguest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/lguest/lguest.c b/drivers/lguest/lguest.c
index 1bc1546c7fd0..fb17d2757be9 100644
--- a/drivers/lguest/lguest.c
+++ b/drivers/lguest/lguest.c
@@ -687,7 +687,8 @@ static struct clocksource lguest_clock = {
687 .rating = 400, 687 .rating = 400,
688 .read = lguest_clock_read, 688 .read = lguest_clock_read,
689 .mask = CLOCKSOURCE_MASK(64), 689 .mask = CLOCKSOURCE_MASK(64),
690 .mult = 1, 690 .mult = 1 << 22,
691 .shift = 22,
691}; 692};
692 693
693/* The "scheduler clock" is just our real clock, adjusted to start at zero */ 694/* The "scheduler clock" is just our real clock, adjusted to start at zero */
@@ -770,7 +771,6 @@ static void lguest_time_init(void)
770 * way, the "rating" is initialized so high that it's always chosen 771 * way, the "rating" is initialized so high that it's always chosen
771 * over any other clocksource. */ 772 * over any other clocksource. */
772 if (lguest_data.tsc_khz) { 773 if (lguest_data.tsc_khz) {
773 lguest_clock.shift = 22;
774 lguest_clock.mult = clocksource_khz2mult(lguest_data.tsc_khz, 774 lguest_clock.mult = clocksource_khz2mult(lguest_data.tsc_khz,
775 lguest_clock.shift); 775 lguest_clock.shift);
776 lguest_clock.flags = CLOCK_SOURCE_IS_CONTINUOUS; 776 lguest_clock.flags = CLOCK_SOURCE_IS_CONTINUOUS;