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

login
register
mail settings
Submitter Igor Mammedov
Date Sept. 26, 2012, 8:32 p.m.
Message ID <1348691578-17231-15-git-send-email-imammedo@redhat.com>
Download mbox | patch
Permalink /patch/187222/
State New
Headers show

Comments

Igor Mammedov - Sept. 26, 2012, 8:32 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 e663ec1..d36410a 100644
--- a/target-i386/cpu.c
+++ b/target-i386/cpu.c
@@ -1191,7 +1191,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;
     }