]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
openrisc: Refactor struct cpuinfo_or1k to reduce duplication
authorSahil Siddiq <sahilcdq0@gmail.com>
Sat, 19 Apr 2025 15:48:17 +0000 (21:18 +0530)
committerStafford Horne <shorne@gmail.com>
Sun, 20 Apr 2025 06:06:54 +0000 (07:06 +0100)
commitefabefb05aa1fe534ddb1839980824a763a7f1b0
tree23d7e42edeb172388c6e3636ec7d24a91d9691cb
parent38fec10eb60d687e30c8c6b5420d86e8149f7557
openrisc: Refactor struct cpuinfo_or1k to reduce duplication

The "cpuinfo_or1k" structure currently has identical data members for
different cache components.

Remove these fields out of struct cpuinfo_or1k and into its own struct.
This reduces duplication while keeping cpuinfo_or1k extensible so more
cache descriptors can be added in the future.

Also add a new field "sets" to the new structure.

Signed-off-by: Sahil Siddiq <sahilcdq0@gmail.com>
Signed-off-by: Stafford Horne <shorne@gmail.com>
arch/openrisc/include/asm/cpuinfo.h
arch/openrisc/kernel/setup.c