]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
target/s390x: Expose s390_count_running_cpus() method
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 8 Jul 2025 09:57:44 +0000 (11:57 +0200)
committerThomas Huth <thuth@redhat.com>
Fri, 11 Jul 2025 08:33:56 +0000 (10:33 +0200)
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>
target/s390x/cpu-system.c
target/s390x/s390x-internal.h

index 9b380e343c25edbb57f5ceb44f5ef6bfdefdf303..2fa8c4d75dbb371dce7a40036627ff31a77804c4 100644 (file)
@@ -196,7 +196,7 @@ static bool disabled_wait(CPUState *cpu)
                             (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;
index 6894f0a2569bc0ccfbcbdf408d244d5b4ea91f1b..145e472edf0bd97cdc16c40b0e62ac4577b28824 100644 (file)
@@ -238,6 +238,7 @@ uint32_t calc_cc(CPUS390XState *env, uint32_t cc_op, uint64_t src, uint64_t dst,
 
 /* 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);