@@ -20,7 +20,7 @@ void dummy_start_vcpu_thread(CPUState *);
#define VCPU_THREAD_NAME_SIZE 16
void cpus_kick_thread(CPUState *cpu);
-bool cpu_work_list_empty(CPUState *cpu);
+bool cpu_work_list_empty(const CPUState *cpu);
bool cpu_thread_is_idle(CPUState *cpu);
bool all_cpu_threads_idle(void);
bool cpu_can_run(CPUState *cpu);
@@ -78,7 +78,7 @@ bool cpu_is_stopped(const CPUState *cpu)
return cpu->stopped || !runstate_is_running();
}
-bool cpu_work_list_empty(CPUState *cpu)
+bool cpu_work_list_empty(const CPUState *cpu)
{
return QSIMPLEQ_EMPTY_ATOMIC(&cpu->work_list);
}
CPUState structure is not modified, make it const. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> --- include/system/cpus.h | 2 +- system/cpus.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)