cpu-common.c: export cpu_get_free_index to be reused later
authorHarsh Prateek Bora <harshpb@linux.ibm.com>
Tue, 18 Jun 2024 08:23:53 +0000 (13:53 +0530)
committerNicholas Piggin <npiggin@gmail.com>
Thu, 25 Jul 2024 23:21:06 +0000 (09:21 +1000)
commit18530e7c57dec3d82d02ed17038661e2005162c1
tree761edbc17ad48e9d1814d72ab580bc768f385ce9
parentc6a3d7bc9e3acf2431ac23ae6dbeb28aa92f873c
cpu-common.c: export cpu_get_free_index to be reused later

This helper provides an easy way to identify the next available free cpu
index which can be used for vcpu creation. Until now, this is being
called at a very later stage and there is a need to be able to call it
earlier (for now, with ppc64) hence the need to export.

Suggested-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Harsh Prateek Bora <harshpb@linux.ibm.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
cpu-common.c
include/exec/cpu-common.h