In order to simplify the next commit where s390_count_running_cpus()
is split out of s390_cpu_halt(), make its prototype public as a
preliminary step.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <
20250708095746.12697-3-philmd@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
(PSW_MASK_IO | PSW_MASK_EXT | PSW_MASK_MCHECK));
}
-static unsigned s390_count_running_cpus(void)
+unsigned s390_count_running_cpus(void)
{
CPUState *cpu;
int nr_running = 0;
/* cpu.c */
#ifndef CONFIG_USER_ONLY
+unsigned int s390_count_running_cpus(void);
unsigned int s390_cpu_halt(S390CPU *cpu);
void s390_cpu_unhalt(S390CPU *cpu);
void s390_cpu_system_init(Object *obj);