[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 18/23] PPC: KVM: Remove kvmppc_read_host_property
From: |
Alexander Graf |
Subject: |
[Qemu-devel] [PATCH 18/23] PPC: KVM: Remove kvmppc_read_host_property |
Date: |
Thu, 21 Jul 2011 03:27:29 +0200 |
We just got rid of the last user of kvmppc_read_host_property, so we
can now safely remove it.
Signed-off-by: Alexander Graf <address@hidden>
---
target-ppc/kvm_ppc.c | 35 -----------------------------------
target-ppc/kvm_ppc.h | 11 -----------
2 files changed, 0 insertions(+), 46 deletions(-)
diff --git a/target-ppc/kvm_ppc.c b/target-ppc/kvm_ppc.c
index 7cc522a..0c9b530 100644
--- a/target-ppc/kvm_ppc.c
+++ b/target-ppc/kvm_ppc.c
@@ -21,41 +21,6 @@
static QEMUTimer *kvmppc_timer;
static unsigned int kvmppc_timer_rate;
-#ifdef CONFIG_FDT
-int kvmppc_read_host_property(const char *node_path, const char *prop,
- void *val, size_t len)
-{
- char *path;
- FILE *f;
- int ret = 0;
- int pathlen;
-
- pathlen = snprintf(NULL, 0, "%s/%s/%s", PROC_DEVTREE_PATH, node_path, prop)
- + 1;
- path = qemu_malloc(pathlen);
-
- snprintf(path, pathlen, "%s/%s/%s", PROC_DEVTREE_PATH, node_path, prop);
-
- f = fopen(path, "rb");
- if (f == NULL) {
- ret = errno;
- goto free;
- }
-
- len = fread(val, len, 1, f);
- if (len != 1) {
- ret = ferror(f);
- goto close;
- }
-
-close:
- fclose(f);
-free:
- free(path);
- return ret;
-}
-#endif
-
static void kvmppc_timer_hack(void *opaque)
{
qemu_service_io();
diff --git a/target-ppc/kvm_ppc.h b/target-ppc/kvm_ppc.h
index 1827a13..523825d 100644
--- a/target-ppc/kvm_ppc.h
+++ b/target-ppc/kvm_ppc.h
@@ -10,17 +10,6 @@
#define __KVM_PPC_H__
void kvmppc_init(void);
-#ifndef CONFIG_KVM
-static inline int kvmppc_read_host_property(const char *node_path, const char
*prop,
- void *val, size_t len)
-{
- assert(0);
- return -ENOSYS;
-}
-#else
-int kvmppc_read_host_property(const char *node_path, const char *prop,
- void *val, size_t len);
-#endif
uint32_t kvmppc_get_tbfreq(void);
uint32_t kvmppc_get_clockfreq(void);
--
1.6.0.2
- [Qemu-devel] [PATCH 22/23] PPC: E500: Update cpu-release-addr property in cpu nodes, (continued)
- [Qemu-devel] [PATCH 04/23] PPC: Add CPU local MMIO regions to MPIC, Alexander Graf, 2011/07/20
- [Qemu-devel] [PATCH 03/23] PPC: Add CPU definitions for up to 32 guest CPUs, Alexander Graf, 2011/07/20
- [Qemu-devel] [PATCH 18/23] PPC: KVM: Remove kvmppc_read_host_property,
Alexander Graf <=
- [Qemu-devel] [PATCH 08/23] PPC: Bump MPIC up to 32 supported CPUs, Alexander Graf, 2011/07/20
- [Qemu-devel] [PATCH 23/23] PPC: E500: Bump CPU count to 32, Alexander Graf, 2011/07/20
- [Qemu-devel] [PATCH 15/23] PPC: E500: Use generic kvm function for freq, Alexander Graf, 2011/07/20
- [Qemu-devel] [PATCH 05/23] PPC: Extend MPIC MMIO range, Alexander Graf, 2011/07/20
- [Qemu-devel] [PATCH 12/23] device tree: add nop_node, Alexander Graf, 2011/07/20
- [Qemu-devel] [PATCH 10/23] PPC: E500: Generate IRQ lines for many CPUs, Alexander Graf, 2011/07/20
- [Qemu-devel] [PATCH 09/23] PPC: E500: create multiple envs, Alexander Graf, 2011/07/20
- [Qemu-devel] [PATCH 13/23] PPC: bamboo: Move host fdt copy to target, Alexander Graf, 2011/07/20