[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [qemu-upstream-unstable] Revert "cpu: Add qemu_for_each_cpu()"



commit 88f78193a97df8512c6392777cfcd979f095d483
Author:     Anthony PERARD <anthony.perard@xxxxxxxxxx>
AuthorDate: Wed Oct 2 17:16:29 2013 +0100
Commit:     Anthony PERARD <anthony.perard@xxxxxxxxxx>
CommitDate: Wed Oct 2 17:16:29 2013 +0100

    Revert "cpu: Add qemu_for_each_cpu()"
    
    This reverts commit 0170b3ce88cb87346afa369a89ce9b197389058b.
---
 exec.c             |   10 ----------
 include/qemu/cpu.h |    9 ---------
 2 files changed, 0 insertions(+), 19 deletions(-)

diff --git a/exec.c b/exec.c
index 9fb6927..8435de0 100644
--- a/exec.c
+++ b/exec.c
@@ -692,16 +692,6 @@ CPUArchState *qemu_get_cpu(int cpu)
     return env;
 }
 
-void qemu_for_each_cpu(void (*func)(CPUState *cpu, void *data), void *data)
-{
-    CPUArchState *env = first_cpu;
-
-    while (env) {
-        func(ENV_GET_CPU(env), data);
-        env = env->next_cpu;
-    }
-}
-
 void cpu_exec_init(CPUArchState *env)
 {
 #ifndef CONFIG_USER_ONLY
diff --git a/include/qemu/cpu.h b/include/qemu/cpu.h
index 23b8b6f..8d2e0cb 100644
--- a/include/qemu/cpu.h
+++ b/include/qemu/cpu.h
@@ -138,14 +138,5 @@ bool cpu_is_stopped(CPUState *cpu);
  */
 void run_on_cpu(CPUState *cpu, void (*func)(void *data), void *data);
 
-/**
- * qemu_for_each_cpu:
- * @func: The function to be executed.
- * @data: Data to pass to the function.
- *
- * Executes @func for each CPU.
- */
-void qemu_for_each_cpu(void (*func)(CPUState *cpu, void *data), void *data);
-
 
 #endif
--
generated by git-patchbot for /home/xen/git/qemu-upstream-unstable.git

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.