[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <CN13QQX0NEA2.M6SABG46NYYN@bobo>
Date: Tue, 20 Sep 2022 18:56:49 +1000
From: "Nicholas Piggin" <npiggin@...il.com>
To: "Christophe Leroy" <christophe.leroy@...roup.eu>,
"Michael Ellerman" <mpe@...erman.id.au>
Cc: <linux-kernel@...r.kernel.org>, <linuxppc-dev@...ts.ozlabs.org>
Subject: Re: [PATCH v2 06/19] powerpc/cputable: Split cpu_specs[] out of
cputable.h
On Tue Sep 20, 2022 at 3:01 AM AEST, Christophe Leroy wrote:
> cpu_specs[] is full of #ifdefs depending on the different
> types of CPU.
>
> CPUs are mutually exclusive, it is therefore possible to split
> cpu_specs[] into smaller more readable pieces.
>
> Create cpu_specs_XXX.h that will each be dedicated on one
> of the following mutually exclusive families:
> - 40x
> - 44x
> - 47x
> - 8xx
> - e500
> - book3s/32
> - book3s/64
>
> In book3s/32, the block for 603 has been moved in front in order
> to not have two 604 blocks.
>
> Signed-off-by: Christophe Leroy <christophe.leroy@...roup.eu>
> ---
> arch/powerpc/kernel/cpu_specs.h | 27 +
> arch/powerpc/kernel/cpu_specs_40x.h | 280 +++
> arch/powerpc/kernel/cpu_specs_44x.h | 304 ++++
> arch/powerpc/kernel/cpu_specs_47x.h | 78 +
> arch/powerpc/kernel/cpu_specs_8xx.h | 21 +
> arch/powerpc/kernel/cpu_specs_book3s_32.h | 607 +++++++
> arch/powerpc/kernel/cpu_specs_book3s_64.h | 488 ++++++
> arch/powerpc/kernel/cpu_specs_e500.h | 135 ++
> arch/powerpc/kernel/cputable.c | 1877 +--------------------
This series is a nice cleanup. No comments yet but kernel/ is getting
pretty crowded. Should we make some subdirectories for subarch things
like mm has?
Can do that after your series. Probably requires another merge window
to do it.
Thanks,
Nick
Powered by blists - more mailing lists