aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/lib/code-patching.c
diff options
context:
space:
mode:
authorYash Shah <[email protected]>2020-02-20 05:15:19 +0000
committerPalmer Dabbelt <[email protected]>2020-05-20 22:05:10 +0000
commit4a3a37331248d85df9e05e9b1d8210dc5ec81f4e (patch)
treee69c611a64e0c6652aa0744119b2efd84e1baeb0 /arch/powerpc/lib/code-patching.c
parentriscv: cacheinfo: Implement cache_get_priv_group with a generic ops structure (diff)
downloadkernel-4a3a37331248d85df9e05e9b1d8210dc5ec81f4e.tar.gz
kernel-4a3a37331248d85df9e05e9b1d8210dc5ec81f4e.zip
riscv: Add support to determine no. of L2 cache way enabled
In order to determine the number of L2 cache ways enabled at runtime, implement a private attribute ("number_of_ways_enabled"). Reading this attribute returns the number of enabled L2 cache ways at runtime. Using riscv_set_cacheinfo_ops() hook a custom function, that returns this private attribute, to the generic ops structure which is used by cache_get_priv_group() in cacheinfo framework. Signed-off-by: Yash Shah <[email protected]> Reviewed-by: Anup Patel <[email protected]> Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'arch/powerpc/lib/code-patching.c')
0 files changed, 0 insertions, 0 deletions