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

login
register
mail settings
Submitter Igor Mammedov
Date Oct. 22, 2012, 3:02 p.m.
Message ID <1350918203-25198-8-git-send-email-imammedo@redhat.com>
Download mbox | patch
Permalink /patch/193168/
State New
Headers show

Comments

Igor Mammedov - Oct. 22, 2012, 3:02 p.m.
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Andreas Färber <afaerber@suse.de>
---
v2:
  * use visit_type_freq() which replaced visit_type_hz()
---
 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 227e51c..63ea74b 100644
--- a/target-i386/cpu.c
+++ b/target-i386/cpu.c
@@ -1084,7 +1084,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;
     }