]> xenbits.xensource.com Git - unikraft/unikraft.git/commitdiff
plat/common: Declare `lcpus` array through `UKPLAT_PER_LCPU_DEFINE`
authorSergiu Moga <sergiu@unikraft.io>
Thu, 23 Nov 2023 12:50:16 +0000 (14:50 +0200)
committerSergiu Moga <sergiu@unikraft.io>
Fri, 24 Nov 2023 17:16:10 +0000 (19:16 +0200)
Align the `lcpus` array with other per-cpu variables by defining
it through the `UKPLAT_PER_LCPU_DEFINE` macro.

Signed-off-by: Sergiu Moga <sergiu@unikraft.io>
plat/common/lcpu.c

index e18b3bd0b8bb1fd8d58438b064889c29aa586510..86b89537680a9a2c4b9244633d14d3044ea72f80 100644 (file)
@@ -59,7 +59,7 @@
  * for non-present CPUs and does not force us to configure the maximum number
  * of CPUs beforehand.
  */
-struct lcpu lcpus[CONFIG_UKPLAT_LCPU_MAXCOUNT];
+UKPLAT_PER_LCPU_DEFINE(struct lcpu, lcpus);
 
 #ifdef CONFIG_HAVE_SMP
 /**