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

login
register
mail settings
Submitter Igor Mammedov
Date Oct. 2, 2012, 3:37 p.m.
Message ID <1349192235-31895-15-git-send-email-imammedo@redhat.com>
Download mbox | patch
Permalink /patch/188557/
State New
Headers show

Comments

Igor Mammedov - Oct. 2, 2012, 3:37 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 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/target-i386/cpu.c b/target-i386/cpu.c
index 9bfa521..7bb6caa 100644
--- a/target-i386/cpu.c
+++ b/target-i386/cpu.c
@@ -1199,7 +1199,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;
     }