X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2Fnvram.c;h=785d38b4d4fcce5d9a7486b4b374f51c4d32e7f1;hb=d715c9f0ed67f88fcddd08131c2f5de5212a5a44;hp=f2c45a386a738c1157feea2394a8033d171156d1;hpb=1bd025c8e158b2b5f4c8e8ccf1bcf8d702dde037;p=palacios-OLD.git 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);