Re: [PATCH v2 01/11] smp: consolidate the structure definitions to smp.h

From: Thomas Gleixner
Date: Mon Apr 25 2022 - 05:52:26 EST


On Fri, Apr 22 2022 at 16:00, Donghai Qiao wrote:
> Move the structure definitions from kernel/smp.c to
> include/linux/smp.h

...

> +static char *seq_type[] = {
> + [CFD_SEQ_QUEUE] = "queue",
> + [CFD_SEQ_IPI] = "ipi",
> + [CFD_SEQ_NOIPI] = "noipi",
> + [CFD_SEQ_PING] = "ping",
> + [CFD_SEQ_PINGED] = "pinged",
> + [CFD_SEQ_HANDLE] = "handle",
> + [CFD_SEQ_DEQUEUE] = "dequeue (src CPU 0 == empty)",
> + [CFD_SEQ_IDLE] = "idle",
> + [CFD_SEQ_GOTIPI] = "gotipi",
> + [CFD_SEQ_HDLEND] = "hdlend (src CPU 0 == early)",
> +};

How does this qualify as a structure definition?

Thanks,

tglx