From: Peter Dinda Date: Fri, 15 Apr 2011 01:04:24 +0000 (-0500) Subject: Corrected RTC timer bug (nvram) X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=commitdiff_plain;h=d70b8aa4fc10499abfc9164bc7766e96d9da2485;hp=45d9da21cb9fcff297b690cc9f12c9a7c7a6ecb5;p=palacios.releases.git Corrected RTC timer bug (nvram) --- diff --git a/palacios/src/devices/nvram.c b/palacios/src/devices/nvram.c index f2c45a3..785d38b 100644 --- a/palacios/src/devices/nvram.c +++ b/palacios/src/devices/nvram.c @@ -472,7 +472,8 @@ static void nvram_update_timer(struct guest_info *vm, uint64_t period_us; - period_us = (1000000*cpu_cycles/cpu_freq); + // cpu freq in khz + period_us = (1000*cpu_cycles/cpu_freq); update_time(nvram_state,period_us);