X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2F8254.c;h=4c3a8af70856864283d3af3341a67b9c6ef888b6;hb=030c1391e319bfeb97ed16fa1dd76545ab3f5f9d;hp=ffae665ef7a029c9aef614919e02b1f339ef7c26;hpb=89034c39d340e3f6b24a8288ceeb506ddbdf7057;p=palacios.git diff --git a/palacios/src/devices/8254.c b/palacios/src/devices/8254.c index ffae665..4c3a8af 100644 --- a/palacios/src/devices/8254.c +++ b/palacios/src/devices/8254.c @@ -679,7 +679,7 @@ static int pit_init(struct v3_vm_info * vm, v3_cfg_tree_t * cfg) { // just hardcode the core context struct guest_info * info = &(vm->cores[0]); - uint_t cpu_khz = V3_CPU_KHZ(); + uint_t cpu_khz = info->time_state.guest_cpu_freq; ullong_t reload_val = (ullong_t)cpu_khz * 1000; pit_state = (struct pit *)V3_Malloc(sizeof(struct pit));