diff options
author | Alexander Graf <agraf@suse.de> | 2011-07-21 02:29:15 +0200 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2011-10-06 09:43:34 +0200 |
commit | eadaada1ceb74f152dc9fe196bdda1b79c86275c (patch) | |
tree | e58017de01b4d01138871a28b8d37e78bc1645e5 /target-ppc/kvm_ppc.h | |
parent | a489f7f7111fb2e8aaf6a152731a5f1fe7e0c4b3 (diff) |
PPC: KVM: Add generic function to read host clockfreq
We need to find out the host's clock-frequency when running on KVM, so
let's export a respective function.
Signed-off-by: Alexander Graf <agraf@suse.de>
---
v1 -> v2:
- enable 64bit values
Diffstat (limited to 'target-ppc/kvm_ppc.h')
-rw-r--r-- | target-ppc/kvm_ppc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/target-ppc/kvm_ppc.h b/target-ppc/kvm_ppc.h index 2f32249e6d..7c08c0f4eb 100644 --- a/target-ppc/kvm_ppc.h +++ b/target-ppc/kvm_ppc.h @@ -23,6 +23,7 @@ int kvmppc_read_host_property(const char *node_path, const char *prop, #endif uint32_t kvmppc_get_tbfreq(void); +uint64_t kvmppc_get_clockfreq(void); int kvmppc_get_hypercall(CPUState *env, uint8_t *buf, int buf_len); int kvmppc_set_interrupt(CPUState *env, int irq, int level); |