Patchwork [5/5] target-i386: use visit_type_hz to parse tsc_freq property value

login
register
mail settings
Submitter Eduardo Habkost
Date Dec. 3, 2012, 5:28 p.m.
Message ID <1354555681-15343-6-git-send-email-ehabkost@redhat.com>
Download mbox | patch
Permalink /patch/203405/
State New
Headers show

Comments

Eduardo Habkost - Dec. 3, 2012, 5:28 p.m.
From: Igor Mammedov <imammedo@redhat.com>

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Andreas Färber <afaerber@suse.de>
---
 target-i386/cpu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/target-i386/cpu.c b/target-i386/cpu.c
index ee03652..def801a 100644
--- a/target-i386/cpu.c
+++ b/target-i386/cpu.c
@@ -1195,7 +1195,7 @@  static void x86_cpuid_set_tsc_freq(Object *obj, Visitor *v, void *opaque,
     const int64_t max = INT64_MAX;
     int64_t value;
 
-    visit_type_int(v, &value, name, errp);
+    visit_type_freq(v, &value, name, errp);
     if (error_is_set(errp)) {
         return;
     }